ThermalSpectralElement¶
- class synphot.thermal.ThermalSpectralElement(modelclass, temperature, beam_fill_factor=1, **kwargs)[source]¶
Bases:
BaseUnitlessSpectrum
Class to handle spectral element with associated thermal properties.
This differs from
SpectralElement
in the sense that it carries thermal parameters, i.e., temperature and beam filling factor.Note
Use
thermal_source()
to apply its emissivity to an existing beam.- Parameters:
- modelclass, kwargs
See
BaseSpectrum
.- temperaturefloat or
Quantity
Temperature. If not a Quantity, assumed to be in Kelvin.
- beam_fill_factorfloat or
Quantity
Beam filling factor. If a Quantity, must be unitless. Defaults to 1.
Attributes Summary
Beam filling factor.
Temperature.
Methods Summary
from_file
(filename[, temperature_key, ...])Creates a thermal spectral element from file.
taper
(**kwargs)Tapering is disabled.
Apply emissivity to an existing beam to produce a thermal source spectrum (without optical counterpart).
Attributes Documentation
- beam_fill_factor¶
Beam filling factor.
- temperature¶
Temperature.
Methods Documentation
- classmethod from_file(filename, temperature_key='DEFT', beamfill_key='BEAMFILL', **kwargs)[source]¶
Creates a thermal spectral element from file.
Note
Only FITS format is supported.
- Parameters:
- filenamestr
Thermal spectral element filename.
- temperature_key, beamfill_keystr
Keywords in FITS table extension that store temperature (in Kelvin) and beam filling factor values. Beam filling factor is set to 1 if its keyword is missing.
- kwargsdict
Keywords acceptable by
read_fits_spec()
.
- Returns:
- th
ThermalSpectralElement
Empirical thermal spectral element.
- th
- Raises:
- synphot.exceptions.SynphotError
Invalid inputs.
- thermal_source()[source]¶
Apply emissivity to an existing beam to produce a thermal source spectrum (without optical counterpart).
Thermal source spectrum is calculated as follow:
Create a blackbody spectrum in PHOTLAM per square arcsec with
temperature
.Multiply the blackbody with
beam_fill_factor
andself
.
- Returns:
- sp
SourceSpectrum
Thermal source spectrum.
- sp