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.


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


CASA <5>: au.bandforspw(4,'')
  Out[5]: 0
CASA <6>: au.bandforspw(5,'')
  Out[6]: 3
CASA <2>:'')
  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