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
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