eradiate.radprops.RadProfile#
- class eradiate.radprops.RadProfile[source]#
Bases:
ABC
An abstract base class for radiative property profiles. Classes deriving from this one must implement methods which return the albedo and collision coefficients as Pint-wrapped Numpy arrays.
See also
- eval_albedo(spectral_ctx, zgrid=None)[source]#
Evaluate albedo spectrum based on a spectral context. This method dispatches evaluation to specialized methods depending on the active mode.
- Parameters:
spectral_ctx (
SpectralContext
) – A spectral context data structure containing relevant spectral parameters (e.g. wavelength in monochromatic mode, bin and quadrature point index in CKD mode).zgrid (
ZGrid
, optional) – The altitude grid for which the albedo is evaluated. If unset, a profile-specific default is used.
- Returns:
quantity
– Evaluated spectrum as an array with length equal to the number of layers.
- eval_dataset(spectral_ctx, zgrid=None)[source]#
Return a dataset that holds the radiative properties of the corresponding atmospheric profile. This method dispatches evaluation to specialized methods depending on the active mode.
- Parameters:
spectral_ctx (
SpectralContext
) – A spectral context data structure containing relevant spectral parameters (e.g. wavelength in monochromatic mode).zgrid (
ZGrid
, optional) – The altitude grid for which the radiative profile is evaluated. If unset, a profile-specific default is used.
- Returns:
Dataset
– Radiative property dataset.
- abstract eval_dataset_ckd(bindexes, zgrid)[source]#
Return a dataset that holds the radiative properties of the corresponding atmospheric profile in CKD modes.
- abstract eval_dataset_mono(w, zgrid)[source]#
Return a dataset that holds the radiative properties of the corresponding atmospheric profile in monochromatic modes.
- eval_sigma_a(spectral_ctx, zgrid=None)[source]#
Evaluate absorption coefficient spectrum based on a spectral context. This method dispatches evaluation to specialized methods depending on the active mode.
- Parameters:
spectral_ctx (
SpectralContext
) – A spectral context data structure containing relevant spectral parameters (e.g. wavelength in monochromatic mode, bin and quadrature point index in CKD mode).zgrid (
ZGrid
, optional) – The altitude grid for which the absorption coefficient is evaluated. If unset, a profile-specific default is used.
- Returns:
quantity
– Evaluated spectrum as an array with length equal to the number of layers.
- abstract eval_sigma_a_ckd(bindexes, zgrid)[source]#
Evaluate absorption coefficient spectrum in CKD modes.
- abstract eval_sigma_a_mono(w, zgrid)[source]#
Evaluate absorption coefficient spectrum in monochromatic modes.
- eval_sigma_s(spectral_ctx, zgrid=None)[source]#
Evaluate scattering coefficient spectrum based on a spectral context. This method dispatches evaluation to specialized methods depending on the active mode.
- Parameters:
spectral_ctx (
SpectralContext
) – A spectral context data structure containing relevant spectral parameters (e.g. wavelength in monochromatic mode, bin and quadrature point index in CKD mode).zgrid (
ZGrid
, optional) – The altitude grid for which the scattering coefficient is evaluated. If unset, a profile-specific default is used.
- Returns:
quantity
– Evaluated spectrum as an array with length equal to the number of layers.
- abstract eval_sigma_s_ckd(bindexes, zgrid)[source]#
Evaluate scattering coefficient spectrum in CKD modes.
- abstract eval_sigma_s_mono(w, zgrid)[source]#
Evaluate scattering coefficient spectrum in monochromatic modes.
- eval_sigma_t(spectral_ctx, zgrid=None)[source]#
Evaluate extinction coefficient spectrum based on a spectral context. This method dispatches evaluation to specialized methods depending on the active mode.
- Parameters:
spectral_ctx (
SpectralContext
) – A spectral context data structure containing relevant spectral parameters (e.g. wavelength in monochromatic mode, bin and quadrature point index in CKD mode).zgrid (
ZGrid
, optional) – The altitude grid for which the extinction coefficient is evaluated. If unset, a profile-specific default is used.
- Returns:
quantity
– Evaluated spectrum as an array with length equal to the number of layers.
- abstract eval_sigma_t_ckd(bindexes, zgrid)[source]#
Evaluate extinction coefficient spectrum in CKD modes.
- abstract eval_sigma_t_mono(w, zgrid)[source]#
Evaluate extinction coefficient spectrum in monochromatic modes.
- abstract property zgrid#
Default altitude grid used for profile evaluation.