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.


au.getMeanFreqFromASDM(sdmfile, minnumchan=64, spws=None)
  • sdmfile: name of ASDM
  • minnumchan: limit the calculation to spws with at least this many channels
  • spws: limit the calculation to the specified spws
  • dictionary of the form: {'lsb': {'meanfreq': meanfreq, 'spws': nspws}, 'usb': {'meanfreq': meanfreq, 'spws': nspws}, 'mean': {'meanfreq': meanfreq, 'spws': nspws}}


CASA <2>: au.getMeanFreqFromASDM('uid___A002_X70c186_X12')
{'lsb': {'meanfreq': 86243429999.899994, 'spws': 2},
 'mean': {'meanfreq': 92243429999.949997, 'spws': 4},
 'usb': {'meanfreq': 98243430000.0, 'spws': 2}}

-- ToddHunter - 2013-12-18
Topic revision: r3 - 2015-08-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