Usage for medianFrequencyOfIntent

Return to directory of Todd's CASA extensions

Returns the median of the mean frequency (in Hz) of the spws observed with the specified intent (default = OBSERVE_TARGET#ON_SOURCE), excluding the WVR spws. It will use the msmd tool if available (>=4.1.0), otherwise it will use ValueMapping.

Usage

au.medianFrequencyOfIntent(vis = '', intent='OBSERVE_TARGET#ON_SOURCE', 
     verbose=False, ignoreChanAvgSpws=True)
  • verbose: if True, then print the spws being used and their mean frequencies

Examples:

msmd:
CASA <3>: au.medianFrequencyOfIntent('X812/uid___A002_X91f01f_X812.ms',verbose=True)
spws =  [9, 13, 15, 17, 18, 19, 20, 21]
  Out[3]: 289895512500.0

ValueMapping:
CASA <2>: au.medianFrequencyOfIntent('uid___A002_X60e47a_X721.ms')
Ignoring spectral window [0, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32] because it is WVR related
  Out[2]: 103947700000.0

-- ToddHunter - 2013-04-29
Topic revision: r3 - 2015-01-26, 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