spwsForScan

Return to directory of Todd's CASA extensions

Return a dictionary keyed by scan number, with values equal to the non-chanavg, non-WVR, non-SQLD spws associated with that scan.

See also spwsForFields.

Usage:

au.spwsForScan(mymsmd)
  • mymsmd: an msmd tool instance

Example:

CASA <3>: msmd.open('uid___A002_X84187d_X1a59.ms')
  Out[3]: True
CASA <4>: au.spwsForScan(msmd)
  Out[4]: 
{1: [0, 2, 4, 6],
 2: [8, 10, 12, 14],
 3: [8, 10, 12, 14],
 4: [16, 18, 20, 22],
 5: [8, 10, 12, 14],
 6: [16, 18, 20, 22],
 7: [8, 10, 12, 14],
 8: [16, 18, 20, 22],
 9: [16, 18, 20, 22],
 10: [16, 18, 20, 22],
 11: [16, 18, 20, 22],
 12: [16, 18, 20, 22],
 13: [16, 18, 20, 22],
 14: [8, 10, 12, 14],
 15: [16, 18, 20, 22],
 16: [16, 18, 20, 22],
 17: [16, 18, 20, 22],
 18: [16, 18, 20, 22],
 19: [16, 18, 20, 22],
 20: [16, 18, 20, 22],
 21: [8, 10, 12, 14],
 22: [16, 18, 20, 22],
 23: [16, 18, 20, 22],
 24: [16, 18, 20, 22],
 25: [16, 18, 20, 22],
 26: [16, 18, 20, 22],
 27: [16, 18, 20, 22],
 28: [8, 10, 12, 14],
 29: [16, 18, 20, 22],
 30: [16, 18, 20, 22],
 31: [16, 18, 20, 22],
 32: [16, 18, 20, 22],
 33: [16, 18, 20, 22],
 34: [16, 18, 20, 22],
 35: [8, 10, 12, 14],
 36: [16, 18, 20, 22],
 37: [16, 18, 20, 22],
 38: [16, 18, 20, 22],
 39: [16, 18, 20, 22],
 40: [16, 18, 20, 22],
 41: [16, 18, 20, 22],
 42: [16, 18, 20, 22],
 43: [8, 10, 12, 14],
 44: [16, 18, 20, 22],
 45: [16, 18, 20, 22],
 46: [16, 18, 20, 22],
 47: [16, 18, 20, 22],
 48: [16, 18, 20, 22],
 49: [16, 18, 20, 22],
 50: [16, 18, 20, 22],
 51: [16, 18, 20, 22]}

-- ToddHunter - 2014-09-18
Topic revision: r1 - 2014-09-18, 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