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_fill_factor

Beam filling factor.

temperature

Temperature.

Methods Summary

from_file(filename[, temperature_key, ...])

Creates a thermal spectral element from file.

taper(**kwargs)

Tapering is disabled.

thermal_source()

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:
thThermalSpectralElement

Empirical thermal spectral element.

Raises:
synphot.exceptions.SynphotError

Invalid inputs.

taper(**kwargs)[source]

Tapering is disabled.

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:

  1. Create a blackbody spectrum in PHOTLAM per square arcsec with temperature.

  2. Multiply the blackbody with beam_fill_factor and self.

Returns:
spSourceSpectrum

Thermal source spectrum.