readCalData

Return to directory of Todd's CASA extensions

Provides the mapping from cal data ID to scan number. See also readCalDataFromASDM.

Usage:

au.readCalData(vis, calType='CAL_ATMOSPHERE')
  • Returns:
    • a translation dictionary from calDataId to scan numbers
    • a list of scans that are of the specified type

Example:

CASA <14>: mydict, mylist = au.readCalData('X2438_applyflags.ms')
Trapped a mismatch in the ASDM_CALDATA table (too many scans marked with CAL_ATMOSPHERE).

CASA <15>: mylist
  Out[15]: array([ 3,  6, 10, 13, 16, 19, 22], dtype=int32)

CASA <16>: mydict
  Out[16]: 
{0: array([1], dtype=int32),
 1: array([1], dtype=int32),
 2: array([2], dtype=int32),
 3: array([2], dtype=int32),
 4: array([3], dtype=int32),
 5: array([3], dtype=int32),
 6: array([4], dtype=int32),
 7: array([5], dtype=int32),
 8: array([5], dtype=int32),
 9: array([6], dtype=int32),
 10: array([6], dtype=int32),
 11: array([7], dtype=int32),
 12: array([7], dtype=int32),
 13: array([8], dtype=int32),
 14: array([8], dtype=int32),
 15: array([9], dtype=int32),
 16: array([9], dtype=int32),
 17: array([10], dtype=int32),
 18: array([10], dtype=int32),
 19: array([12], dtype=int32),
 20: array([12], dtype=int32),
 21: array([13], dtype=int32),
 22: array([13], dtype=int32),
 23: array([15], dtype=int32),
 24: array([15], dtype=int32),
 25: array([ 9, 12, 15], dtype=int32),
 26: array([ 9, 12, 15], dtype=int32),
 27: array([16], dtype=int32),
 28: array([16], dtype=int32),
 29: array([18], dtype=int32),
 30: array([18], dtype=int32),
 31: array([ 9, 12, 15, 18], dtype=int32),
 32: array([ 9, 12, 15, 18], dtype=int32),
 33: array([19], dtype=int32),
 34: array([19], dtype=int32),
 35: array([21], dtype=int32),
 36: array([21], dtype=int32),
 37: array([ 9, 12, 15, 18, 21], dtype=int32),
 38: array([ 9, 12, 15, 18, 21], dtype=int32),
 39: array([22], dtype=int32),
 40: array([22], dtype=int32),
 41: array([24], dtype=int32),
 42: array([24], dtype=int32),
 43: array([ 9, 12, 15, 18, 21, 24], dtype=int32),
 44: array([ 9, 12, 15, 18, 21, 24], dtype=int32)}
-- ToddHunter - 2013-09-29
Topic revision: r1 - 2013-09-29, 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