WaveCatalog

class stsynphot.wavetable.WaveCatalog(fname, wave_unit=Unit('Angstrom'))[source]

Bases: object

Class to handle stsynphot.config.conf.wavecatfile initialization and access.

Input file is parsed with stsynphot.stio.read_wavecat().

For each observation mode, its wavelength table is defined by filename or parameter string. When it is accessed with __getitem__(), the string is replaced by the actual wavelengths array. If filename is given, it is parsed with stsynphot.stio.read_waveset().

Parameters:
fnamestr

Wavecat filename.

wave_unitstr or Unit

Wavelength unit.

Attributes:
filestr

Wavecat filename.

wave_unitUnit

Wavelength unit.

lookupdict

Maps observation mode to corresponding wavelength table filename or parameter string.

setlookupdict

Maps individual components of observation mode to its string. Used for partial matching.

Methods Summary

load_waveset(obsmode)

Load wavelength table by observation mode.

Methods Documentation

load_waveset(obsmode)[source]

Load wavelength table by observation mode. If no exact match, find the most complete match.

Parameters:
obsmodestr

Observation mode.

Returns:
parstr

Matched filename or parameter string. May be exact or closest.

wavesetastropy.units.quantity.Quantity

Corresponding wavelength set.