Usage for getIntentsForFieldID

Accepts either a ValueMapping structure or an msmd tool, and gets all the intents for which a field was observed. Returns a list of strings. See also getMajorIntentsForFieldID.

Usage:

   amc.getIntentsForFieldID(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>: amc.getIntentsForFieldID(0, vm=vm)
  Out[3]: 
array(['CALIBRATE_ATMOSPHERE#OFF_SOURCE', 'CALIBRATE_ATMOSPHERE#ON_SOURCE',
       'CALIBRATE_BANDPASS#ON_SOURCE', 'CALIBRATE_POINTING#ON_SOURCE',
       'CALIBRATE_SIDEBAND_RATIO#OFF_SOURCE',
       'CALIBRATE_SIDEBAND_RATIO#ON_SOURCE', 'CALIBRATE_WVR#OFF_SOURCE',
       'CALIBRATE_WVR#ON_SOURCE'], 
      dtype='|S35')

Example (casa 4.1):

CASA <4>: msmd.open('uid___A002_X5b3894_X3ec.ms')
  Out[4]: True

CASA <5>: amc.getIntentsForFieldID(0, mymsmd=msmd)
  Out[5]: 
array(['CALIBRATE_ATMOSPHERE#OFF_SOURCE', 'CALIBRATE_ATMOSPHERE#ON_SOURCE',
       'CALIBRATE_BANDPASS#ON_SOURCE', 'CALIBRATE_POINTING#ON_SOURCE',
       'CALIBRATE_SIDEBAND_RATIO#OFF_SOURCE',
       'CALIBRATE_SIDEBAND_RATIO#ON_SOURCE', 'CALIBRATE_WVR#OFF_SOURCE',
       'CALIBRATE_WVR#ON_SOURCE'], 
      dtype='|S35')

-- ToddHunter - 2013-03-12
Topic revision: r1 - 2013-03-12, 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