getMeanFreqFromASDM
Return to directory of Todd's CASA extensions
Gets the mean frequency of the spectral windows for each sideband, assuming
that the bandwidth of each spw is the same. Useful for quickly getting the
frequency of celestial holography datasets. See also
getSpwsFromASDM and
getFrequenciesFromASDM.
Usage:
au.getMeanFreqFromASDM(sdmfile, minnumchan=64, spws=None)
Inputs:
- sdmfile: name of ASDM
- minnumchan: limit the calculation to spws with at least this many channels
- spws: limit the calculation to the specified spws
Returns:
- dictionary of the form: {'lsb': {'meanfreq': meanfreq, 'spws': nspws}, 'usb': {'meanfreq': meanfreq, 'spws': nspws}, 'mean': {'meanfreq': meanfreq, 'spws': nspws}}
Examples:
CASA <2>: au.getMeanFreqFromASDM('uid___A002_X70c186_X12')
Out[2]:
{'lsb': {'meanfreq': 86243429999.899994, 'spws': 2},
'mean': {'meanfreq': 92243429999.949997, 'spws': 4},
'usb': {'meanfreq': 98243430000.0, 'spws': 2}}
--
ToddHunter - 2013-12-18