ObservationMode

class stsynphot.observationmode.ObservationMode(obsmode, graphtable=None, comptable=None, component_dict={})[source]

Bases: BaseObservationMode

Class to handle an observation that uses the graph and optical component tables.

See BaseObservationMode for additional attributes.

Parameters:
obsmode, graphtable, comptable

See BaseObservationMode.

component_dictdict

Maps component filename to corresponding Component.

Attributes Summary

sensitivity

Sensitivity spectrum to convert flux in \(erg \; cm^{-2} \; s^{-1} \; \AA^{-1}\) to \(count s^{-1} \AA^{-1}\).

throughput

Combined throughput from multiplying all the components together.

Methods Summary

thermal_spectrum([thermtable])

Calculate thermal spectrum using ThermalObservationMode.to_spectrum().

Attributes Documentation

sensitivity

Sensitivity spectrum to convert flux in \(erg \; cm^{-2} \; s^{-1} \; \AA^{-1}\) to \(count s^{-1} \AA^{-1}\). Calculation is done by combining the throughput curves with \(\frac{h \; c}{\lambda}\) .

throughput

Combined throughput from multiplying all the components together.

Methods Documentation

thermal_spectrum(thermtable=None)[source]

Calculate thermal spectrum using ThermalObservationMode.to_spectrum().

Parameters:
thermtablestr or None

Thermal component table filename. If None, uses stsynphot.config.conf.thermtable.

Returns:
spsynphot.spectrum.SourceSpectrum

Thermal spectrum in PHOTLAM.

Raises:
synphot.exceptions.SynphotError

Calculation failed.