scopeinpython.utils
Small numerical/radiometric helpers used by RTMo: sint (Simpson-like
integration), photon-energy conversions, Planck’s law.
Small numerical utilities shared across the RTMo pipeline.
Direct ports of SCOPEinR/R/Sint.R, e2phot.R, ephoton.R and
Planck.R.
- scopeinpython.utils.sint(y, x)[source]
Trapezoidal integration of
yoverx.Direct port of
SCOPEinR::Sint.
- scopeinpython.utils.get_ephoton(lambda_m, const=None)[source]
Energy content (J) of one photon at wavelength(s)
lambda_m(m).Direct port of
SCOPEinR::get.ephoton.
- scopeinpython.utils.get_e2phot(lambda_m, E, const=None)[source]
Number of moles of photons corresponding to E Joules of energy at wavelength(s) lambda (m).
Direct port of
SCOPEinR::get.e2phot.
- scopeinpython.utils.get_planck(wl_nm, Tb, em=None)[source]
Blackbody (or greybody) spectral radiance, Planck’s law.
Direct port of
SCOPEinR::get.Planck.- Parameters:
wl_nm (array_like) – Wavelength(s), nm.
Tb (array_like) – Temperature(s), K.
em (array_like, optional) – Emissivity (default 1).
- Return type: