getScienceSpws

Return to directory of Todd's CASA extensions

Return a list of spws with the specified intent. For ALMA data, it ignores channel-averaged and SQLD spws. See also getScienceFrequencies and getScienceSpwsInSameBaseband.

Usage:

au.getScienceSpws(vis, intent='OBSERVE_TARGET#ON_SOURCE', returnString=True)

Examples:

CASA <2>: au.getScienceSpws('uid___A002_X99c183_X25b6.ms.split')
  Out[2]: '0,1,2,3,4,5'

CASA <3>: au.getScienceSpws('uid___A002_X99c183_X25b6.ms.split',returnString=False)
  Out[3]: [0, 1, 2, 3, 4, 5]

-- ToddHunter - 2016-01-04
Topic revision: r2 - 2016-07-14, 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