- class eradiate.scenes.spectra.SolarIrradianceSpectrum(id=None, dataset='thuillier_2003_extrapolated', scale=1.0, datetime=None)#
Solar irradiance spectrum [
This scene element produces the scene dictionary required to instantiate a kernel plugin using the Sun irradiance spectrum. The data set used by this element is controlled by the
stror path-like, optional, default:
"thuillier_2003_extrapolated") – Solar spectrum dataset. If a string is passed, it is first interpreted as a Solar irradiance spectrum identifier (see Solar irradiance for the list); should that fail, it is interpreted as a path. If a path is passed, loading the corresponding file on the hard drive is attempted; should that fail, a query to the data store is made (see
str, optional) – Date for which the spectrum is to be evaluated. An ISO string can be passed and will be interpreted by
dateutil.parser.parse(). This parameter scales the irradiance spectrum to account for the seasonal variation of the Earth-Sun distance. This scaling is applied in addition to the arbitrary scaling controlled by the scale parameter.
datetimefield is set, the spectrum is automatically scaled to account for the seasonal variations of the Earth-Sun distance using the ephemeris of
astropy.coordinates.get_sun(). The dataset is assumed to be normalised to an Earth-Sun distance of 1 AU.
scalefield can be used to apply additional arbitrary scaling. It is mostly used for debugging purposes. It can also be used to rescale user-defined spectra normalised at an Earth-Sun distance different from 1 AU.
The evaluation method depends on the active mode:
mono_*modes, the spectrum is evaluated at the spectral context wavelength;
ckd_*modes, the spectrum is evaluated as the average value over the spectral context bin (the integral is computed using a trapezoid rule).
The produced kernel dictionary automatically adjusts its irradiance units depending on the selected kernel default units.
Evaluate spectrum based on a spectral context. This method dispatches evaluation to specialised methods depending on the active mode.
Evaluate spectrum in CKD modes.
Evaluate spectrum in monochromatic modes.
- integral(wmin, wmax)#
Compute the integral of the spectrum on a given interval.