BaseObservationMode

class stsynphot.observationmode.BaseObservationMode(obsmode, graphtable=None, comptable=None)[source]

Bases: object

Base class to handle an observation that uses the graph and optical component tables, common to both optical and thermal observation modes.

Note

modes for parameterized mode is set such that the parameterized value is stripped away; e.g., 'acs,wfc1,f555w,mjd#53000' becomes ['acs', 'wfc1', 'f555w', 'mjd#']. Instead, the parameterized value is kept in pardict; e.g., 'mjd#53000' becomes {'mjd': 53000.0}.

pixscale is set from stsynphot.config.conf.detectorfile, which is parsed with stsynphot.stio.read_detector_pars().

binset is set by stsynphot.wavetable.WAVECAT.

Parameters
obsmodestr

Observation mode.

graphtablestr or None

Graph table filename. If None, uses stsynphot.config.conf.graphtable.

comptablestr or None

Optical component table filename. If None, uses stsynphot.config.conf.comptable.

Attributes
modeslist

List of individual modes within observation mode.

pardictdict

Maps parameterized mode to its value.

gtname, ctnamestr

Graph and component table filenames.

compnames, thcompnameslist of str

Optical and thermal components.

componentslist of obj

List of component objects.

primary_areaastropy.units.quantity.Quantity

Telescope collecting area.

pixscaleastropy.units.quantity.Quantity

Detector pixel scale.

binsetstr

Wavelength table filename/param string from matching obsmode.

bandwaveastropy.units.quantity.Quantity

Wavelength set defined by binset.

Methods Summary

showfiles()

Display optical component filenames.

Methods Documentation

showfiles()[source]

Display optical component filenames.

Note

Similar to IRAF SYNPHOT SHOWFILES.