getSpwsFromASDM
Return to directory of Todd's CASA extensions
Returns a dictionary of the spw information for every spw in the specified
ASDM. Dictionary contents: spectralWindowId, numChan, refFreq, sideband,
centerFreq. See also
getMeanFreqFromASDM and
getNumChanFromASDM.
Usage:
au.getSpwsFromASDM(sdmfile, minnumchan=0, dropExtraWVRSpws=False)
- minnumchan: only return information on those spws with at least this many channels
- dropExtraWVRSpws: if True, then include in the dictionary a maximum of one spw with 4 channels
Example:
CASA <2>: au.getSpwsFromASDM('uid___A002_X65c1ab_Xd8d/',minnumchan=5)
Out[2]:
{0: {'basebandNumber': 1,
'centerFreq': 332858499999.9,
'chanFreqStart': 333842874999.9,
'numChan': 64,
'refFreq': 333858499999.9,
'sideband': -1,
'spectralWindowId': 39},
1: {'basebandNumber': 2,
'centerFreq': 334733499999.9,
'chanFreqStart': 335717874999.9,
'numChan': 64,
'refFreq': 335733499999.9,
'sideband': -1,
'spectralWindowId': 41},
2: {'basebandNumber': 3,
'centerFreq': 344858500000.0,
'chanFreqStart': 343874125000.0,
'numChan': 64,
'refFreq': 343858500000.0,
'sideband': 1,
'spectralWindowId': 43},
3: {'basebandNumber': 4,
'centerFreq': 346733500000.0,
'chanFreqStart': 345749125000.0,
'numChan': 64,
'refFreq': 345733500000.0,
'sideband': 1,
'spectralWindowId': 45}}
--
ToddHunter - 2013-12-16