ThermalRadiation#

class ThermalRadiation(temperature, emissivity, nelements=1)[source]#

Bases: object

Black body thermal radiation of telescope and instrument components.

This class computes the thermal photon (or electron) flux of grey bodies, integrated over wavelength bins, given the temperature, emissivity and number of the emitting components.

Parameters:
  • temperature (float or numpy.ndarray) – Temperature(s) of the components in K.

  • emissivity (float or numpy.ndarray) – Emissivity of the components, between 0 and 1.

  • nelements (int or numpy.ndarray, optional) – Number of components sharing each temperature and emissivity. Default is 1.

Methods

get_blackbody_flux

Calculate the black body flux of the components' temperatures.

get_integrated_blackbody_flux

Calculate the black body flux integrated over wavelength bins.

get_signal

Calculate the thermal signal received, integrated over wavelength bins.

Attributes

emissivity

Emissivity of the components.

nelements

Number of components sharing each temperature and emissivity.

temperature

Temperature of the components in K.

get_blackbody_flux(lbda, qe=1)[source]#

Calculate the black body flux of the components’ temperatures.

Parameters:
  • lbda (float or numpy.ndarray) – Wavelength(s) in Angstrom.

  • qe (float or numpy.ndarray or callable or None, optional) – Quantum efficiency in e-/ph used to convert photons into electrons: None (flux in photons), a function of wavelength, or a float or array broadcasting with lbda. Default is 1.

Returns:

float or numpy.ndarray – Black body photon (or electron) flux in ph/s/sr/m^2/A (or e-/s/sr/m^2/A).

get_integrated_blackbody_flux(lbda_bin, allow_trapez=True, qe=None)[source]#

Calculate the black body flux integrated over wavelength bins.

Parameters:
  • lbda_bin (array_like) – Wavelength bin(s) in Angstrom, either 1D [lbda_min, lbda_max] or 2D [[lbda_min, lbda_max], [lbda_min, lbda_max], ...].

  • allow_trapez (bool, optional) – If True, approximate the integral by the flux at the bin centre times the bin width (per-mil level accuracy, much faster). Only used for 2D lbda_bin; 1D bins are always integrated exactly. Default is True.

  • qe (float or numpy.ndarray or callable or None, optional) – Quantum efficiency in e-/ph used to convert photons into electrons: None (flux in photons), a function of wavelength, or a float or array broadcasting with the wavelengths. Default is None.

Returns:

float or numpy.ndarray – Integrated black body photon (or electron) flux in ph/s/sr/m^2 (or e-/s/sr/m^2).

Raises:

ValueError – If lbda_bin is neither 1D nor 2D.

get_signal(lbda_bin, area, solid_angle, qe=None)[source]#

Calculate the thermal signal received, integrated over wavelength bins.

This is the integrated black body flux (see get_integrated_blackbody_flux) times solid_angle * area * emissivity * nelements.

Parameters:
  • lbda_bin (array_like) – Wavelength bin(s) in Angstrom, either 1D [lbda_min, lbda_max] or 2D [[lbda_min, lbda_max], [lbda_min, lbda_max], ...].

  • area (float) – Collecting area in m^2.

  • solid_angle (float or numpy.ndarray) – Solid angle(s) in steradian under which the emission is received (e.g. the spaxel angular area).

  • qe (float or callable or None, optional) – Quantum efficiency in e-/ph, as a constant or a function of wavelength (in Angstrom). If None, the signal is in photons. Default is None.

Returns:

float or numpy.ndarray – Thermal signal in ph/s (or e-/s if qe is given) integrated over each bin.

emissivity#

Emissivity of the components.

nelements#

Number of components sharing each temperature and emissivity.

temperature#

Temperature of the components in K.