getLOs

Return to directory of Todd's CASA extensions

Reads the LO information from an ms's ASDM_RECEIVER table. It returns a list of four lists: [freqLO,band,spws,names], where freqLO is in units of Hz. The logic for converting this raw list into a sensible association with the correct spw numbers is in printLOs, which is now simply a wrapper for interpretLOs. See also getLOsFromASDM.

Usage:

au.getLOs(inputMs, verbose=True)

Example:

CASA <8>: au.getLOs('uid___A002_X6fa591_X49b.ms')
  Out[8]: 
[[array([  3.43453075e+11]),
  array([  3.43453075e+11,   9.95850000e+09,   4.00000000e+09]),
  array([  3.43453075e+11,   9.95850000e+09,   4.00000000e+09]),
  array([  3.43453075e+11,   8.02100000e+09,   4.00000000e+09]),
  array([  3.43453075e+11,   8.02100000e+09,   4.00000000e+09]),
  array([  3.43453075e+11,   8.04150000e+09,   4.00000000e+09]),
  array([  3.43453075e+11,   8.04150000e+09,   4.00000000e+09]),
  array([  3.43453075e+11,   1.00415000e+10,   4.00000000e+09]),
  array([  3.43453075e+11,   1.00415000e+10,   4.00000000e+09]),
  array([  2.38006850e+11]),
  array([  2.38006850e+11,   1.14063500e+10,   4.00000000e+09]),
  array([  2.38006850e+11,   1.14063500e+10,   4.00000000e+09]),
  array([  2.38006850e+11,   9.53135000e+09,   4.00000000e+09]),
  array([  2.38006850e+11,   9.53135000e+09,   4.00000000e+09]),
  array([  2.38006850e+11,   9.59365000e+09,   4.00000000e+09]),
  array([  2.38006850e+11,   9.59365000e+09,   4.00000000e+09]),
  array([  2.38006850e+11,   1.14686500e+10,   4.00000000e+09]),
  array([  2.38006850e+11,   1.14686500e+10,   4.00000000e+09])],
 ['UNSPECIFIED',
  'ALMA_RB_07',
  'ALMA_RB_07',
  'ALMA_RB_07',
  'ALMA_RB_07',
  'ALMA_RB_07',
  'ALMA_RB_07',
  'ALMA_RB_07',
  'ALMA_RB_07',
  'UNSPECIFIED',
  'ALMA_RB_06',
  'ALMA_RB_06',
  'ALMA_RB_06',
  'ALMA_RB_06',
  'ALMA_RB_06',
  'ALMA_RB_06',
  'ALMA_RB_06',
  'ALMA_RB_06'],
 [0, 11, 12, 13, 14, 15, 16, 17, 18, 0, 19, 20, 21, 22, 23, 24, 25, 26],
 ['WVR',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'WVR',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED',
  'UNDEFINED'],
 [array(['DSB'], 
      dtype='|S4'),
  array(['LSB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['LSB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['LSB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['LSB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['USB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['USB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['USB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['USB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['DSB'], 
      dtype='|S4'),
  array(['LSB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['LSB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['LSB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['LSB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['USB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['USB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['USB', 'LSB', 'LSB'], 
      dtype='|S4'),
  array(['USB', 'LSB', 'LSB'], 
      dtype='|S4')],
 [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0],
 array(['WVR#NOMINAL', 'ALMA_RB_07#BB_1#SW-01#FULL_RES',
       'ALMA_RB_07#BB_1#SW-01#CH_AVG', 'ALMA_RB_07#BB_2#SW-01#FULL_RES',
       'ALMA_RB_07#BB_2#SW-01#CH_AVG', 'ALMA_RB_07#BB_3#SW-01#FULL_RES',
       'ALMA_RB_07#BB_3#SW-01#CH_AVG', 'ALMA_RB_07#BB_4#SW-01#FULL_RES',
       'ALMA_RB_07#BB_4#SW-01#CH_AVG', 'ALMA_RB_06#BB_1#SW-01#FULL_RES',
       'ALMA_RB_06#BB_1#SW-01#CH_AVG', 'ALMA_RB_06#BB_2#SW-01#FULL_RES',
       'ALMA_RB_06#BB_2#SW-01#CH_AVG', 'ALMA_RB_06#BB_3#SW-01#FULL_RES',
       'ALMA_RB_06#BB_3#SW-01#CH_AVG', 'ALMA_RB_06#BB_4#SW-01#FULL_RES',
       'ALMA_RB_06#BB_4#SW-01#CH_AVG', 'WVR#Antenna_0', 'WVR#Antenna_1',
       'WVR#Antenna_2', 'WVR#Antenna_3', 'WVR#Antenna_4', 'WVR#Antenna_5',
       'WVR#Antenna_6', 'WVR#Antenna_7', 'WVR#Antenna_8', 'WVR#Antenna_9'], 
      dtype='|S31')]

-- ToddHunter - 2013-10-20
Topic revision: r2 - 2013-10-23, 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