Usage for getMajorIntentsForFieldID

Return to directory of Todd's CASA extensions

Accepts either a ValueMapping structure or an msmd tool, and gets all the intents for which a field was observed. By "major", we mean everything except: CALIBRATE_WVR, CALIBRATE_ATMOSPHERE, CALIBRATE_SIDEBAND_RATIO, and CALIBRATE_POINTING. Returns a single, comma-delimited string.

Usage:

   import analyzemscal as amc
   amc.getMajorIntentsForFieldID(field, vm='', mymsmd=''):

Example (casa 4.0 or earlier):

CASA <2>: vm = au.ValueMapping('uid___A002_X5b3894_X3ec.ms')
Ignoring spectral window [0, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50] because it is WVR related
CASA <3>: import analyzemscal as amc
CASA <4>: amc.getMajorIntentsForFieldID(0, vm=vm)
  Out[4]: 'CALIBRATE_BANDPASS'

Example (casa >= 4.1):

CASA <4>: msmd.open('uid___A002_X5b3894_X3ec.ms')
  Out[4]: True
CASA <5>: amc.getMajorIntentsForFieldID(0, mymsmd=msmd) 
  Out[5]: 'CALIBRATE_BANDPASS'

-- ToddHunter - 2013-03-12
Topic revision: r2 - 2014-09-07, 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