getScienceSpwsForFrequency

Return to directory of Todd's CASA extensions

Gets a list of spws with OBSERVE_TARGET intent whose channels contain a specified frequency. See also getScienceSpws.

Usage:

au.getScienceSpwsForFrequency(vis, frequency)
Inputs:
  • vis: measurement set
  • frequency: Hz, GHz or string with units

Examples:

CASA <14>: au.getScienceSpwsForFrequency('uid___A002_X99c183_X25b6.ms.split',231.33)
  Out[14]: [4]

CASA <15>: au.getScienceSpwsForFrequency('uid___A002_X99c183_X25b6.ms.split',231.33e9)
  Out[15]: [4]

CASA <16>: au.getScienceSpwsForFrequency('uid___A002_X99c183_X25b6.ms.split','231330MHz')
  Out[16]: [4]

-- ToddHunter - 2016-01-04

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > GetScienceSpwsForFrequency
Topic revision: 2016-01-04, 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