bandforspw

Return to directory of Todd's CASA extensions

Uses msmd.namesforspw and parses out the ALMA band name. Accepts either a measurement set name or an msmd instance. See also getBand.

Usage:

au.bandforspw(spw, vis='', mymsmd='')
Inputs:
  • spw: integer or integer string
  • Either:
    • vis: name of measurement set
    • mymsmd: msmd tool instance
Returns:
  • an integer: 0 for the WVR, otherwise 1..10

Examples:

CASA <5>: au.bandforspw(4,'uid___A002_Xaec9ef_Xc9f.ms')
  Out[5]: 0
CASA <6>: au.bandforspw(5,'uid___A002_Xaec9ef_Xc9f.ms')
  Out[6]: 3
CASA <2>: msmd.open('uid___A002_Xaec9ef_Xc9f.ms')
  Out[2]: True
CASA <3>: au.bandforspw(17,mymsmd=msmd)
  Out[3]: 3

-- ToddHunter - 2016-02-05
Topic revision: r1 - 2016-02-05, 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