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 spectrum to convert flux in \(erg \; cm^{-2} \; s^{-1} \; \AA^{-1}\) to \(count s^{-1} \AA^{-1}\).
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:
- Returns:
- sp
synphot.spectrum.SourceSpectrum
Thermal spectrum in PHOTLAM.
- sp
- Raises:
- synphot.exceptions.SynphotError
Calculation failed.