timeOnSourceSD

Return to directory of Todd's CASA extensions

Determine the time spent on-source and off-source (per-antenna, and sum) for single-dish datasets. See also timeOnSource.

Usage:

au.timeOnSource(vis, obsid=0, spw=None, debug=False)
  • spw: which spw to use to analyze times. default=None=first non-WVR science spw
  • Returns:
    • the total on-source time in minutes

Example:

CASA <2>: au.timeOnSourceSD('uid___A002_X6de43a_X14e9.ms')
There are 42380 rows and 1 OBSERVATION_IDs in this dataset = [0]
spws with observe_target =  [ 0 17 18 19 20 21 22 23 24]
Choosing spw=17
3300 rows have spw=17
PM01: 714 rows have spw=17 and an off_source state id (percent flagged=0.000)
PM01: 714 rows have spw=17 and an on_source  state id (percent flagged=0.004)
PM01:  on source time = 907.2 sec = 15.1 min
PM01: off source time = 719.7 sec = 12.0 min
PM04: 714 rows have spw=17 and an off_source state id (percent flagged=0.000)
PM04: 714 rows have spw=17 and an on_source  state id (percent flagged=0.004)
PM04:  on source time = 907.2 sec = 15.1 min
PM04: off source time = 719.7 sec = 12.0 min
sum of 2 antennas:
 on source time = 1814.3 sec = 30.2 min
off source time = 1439.4 sec = 24.0 min
on-source efficiency = 32.2%
  Out[2]: 30.23888

-- ToddHunter - 2013-09-30
Topic revision: r2 - 2013-10-02, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback