getSpwsForBaseband

Return to directory of Todd's CASA extensions

This emulates msmd.spwsforbaseband() for older versions of casa that do not contain this method.

Usage:

au.getSpwsForBaseband(mymsmd, bb)
  • mymsmd: either an instance of an existing msmd tool, or the name of a measurement set
  • bb: baseband number

Examples:

CASA <4>: au.getSpwsForBaseband('uid___A002_X725175_X214.ms',1)
  Out[4]: [1, 2, 9, 10, 17, 18, 25, 26]

CASA <5>: msmd.open('uid___A002_X725175_X214.ms')
  Out[5]: True

CASA <6>: au.getSpwsForBaseband(msmd,1)
  Out[6]: [1, 2, 9, 10, 17, 18, 25, 26]

CASA <7>:

-- ToddHunter - 2013-12-12
Topic revision: r1 - 2013-12-12, 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