getSpwsFromCaltable

Return to directory of Todd's CASA extensions

Returns the unique list of spw IDs for which solutions exist in the specified caltable. See also getSpwsFromASDM and getSpwMeanFreqFromCaltable.

Usage:

au.getSpwsFromCaltable(caltable, getNumberOfChannels=False)
Inputs:
  • caltable: name of caltable
  • getNumberOfChannels: if True, then return a dictionary, with values=nchan

Examples:

CASA <15>: au.getSpwsFromCaltable('uid___A002_X99c183_X25b6.ms.tsys')
  Out[15]: array([ 9, 11, 13, 15], dtype=int32)
CASA <14>: au.getSpwsFromCaltable('uid___A002_X99c183_X25b6.ms.split.bandpass',getNumberOfChannels=True)
  Out[14]: {0: 10, 1: 10, 2: 128, 3: 10, 4: 10, 5: 128}    

-- ToddHunter - 2016-02-09
Topic revision: r3 - 2016-03-08, 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