ThermalRadiation#
- class ThermalRadiation(temperature, emissivity, nelements=1)[source]#
Bases:
objectBlack 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 (
floatornumpy.ndarray) – Temperature(s) of the components in K.emissivity (
floatornumpy.ndarray) – Emissivity of the components, between 0 and 1.nelements (
intornumpy.ndarray, optional) – Number of components sharing each temperature and emissivity. Default is 1.
Methods
Calculate the black body flux of the components' temperatures.
Calculate the black body flux integrated over wavelength bins.
Calculate the thermal signal received, integrated over wavelength bins.
Attributes
Emissivity of the components.
Number of components sharing each temperature and emissivity.
Temperature of the components in K.
- get_blackbody_flux(lbda, qe=1)[source]#
Calculate the black body flux of the components’ temperatures.
- Parameters:
lbda (
floatornumpy.ndarray) – Wavelength(s) in Angstrom.qe (
floatornumpy.ndarrayor callable orNone, 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 withlbda. Default is 1.
- Returns:
floatornumpy.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 2Dlbda_bin; 1D bins are always integrated exactly. Default is True.qe (
floatornumpy.ndarrayor callable orNone, 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:
floatornumpy.ndarray– Integrated black body photon (or electron) flux in ph/s/sr/m^2 (or e-/s/sr/m^2).- Raises:
ValueError – If
lbda_binis 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) timessolid_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 (
floatornumpy.ndarray) – Solid angle(s) in steradian under which the emission is received (e.g. the spaxel angular area).qe (
floator callable orNone, 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:
floatornumpy.ndarray– Thermal signal in ph/s (or e-/s ifqeis 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.