Usage of readFluxesFromASDM

Return to directory of Todd's CASA extensions

Read the flux densities from an ASDM. First look for the CalFlux.xml file, but if that doesn't exist look for the Source.xml table (though that area was never properly implemented). Specify a sourcename, field ID, spw or list of spws in order to limit the results to a specific source and/or spw. Inserting the wildcard character (*) into sourcename will return partial matches. Returns a raw list of dictionaries (one per row) of the information:

{'sourceName'
sourceName, 'stokes': stokesParameters,
'frequencyRange'
frequency, 'fluxDensity': fluxDensity,
'fluxDensityError'
fluxDensityError})

as well as a dictionary keyed by sourceName.

See also printFluxesFromASDM, searchFlux.

Usage:

mylist, mydict = au.readFluxesFromASDM(sdmfile, sourcename='', field=-1, spw=-1)
  • spw can be an integer, string or list: 1, '1', [1,2], or '1,2'

-- ToddHunter - 2013-01-30
Topic revision: r5 - 2013-08-09, 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