eradiate.radprops.AFGL1986RadProfile#

class eradiate.radprops.AFGL1986RadProfile(thermoprops=_Nothing.NOTHING, has_absorption=True, has_scattering=True)[source]#

Bases: RadProfile

Radiative properties profile corresponding to the AFGL (1986) atmospheric thermophysical properties profiles [Anderson et al., 1986].

Parameters:
  • thermoprops (Dataset, default: make_profile()) – Thermophysical properties.

  • has_absorption (bool, default: True) – Absorption switch. If True, the absorption coefficient is computed. Else, the absorption coefficient is not computed and instead set to zero.

  • has_scattering (bool, default: True) – Scattering switch. If True, the scattering coefficient is computed. Else, the scattering coefficient is not computed and instead set to zero.

Fields:
  • has_absorption (bool) – Absorption switch.

  • has_scattering (bool) – Scattering switch.

Warning

This class does not support mono modes.

eval_albedo(spectral_ctx, zgrid=None)#

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_albedo_ckd(bindexes, zgrid)[source]#

Evaluate albedo spectrum in CKD modes.

Parameters:
  • bindexes (list of Bindex) – CKD bindexes for which to evaluate the spectrum.

  • zgrid (ZGrid) – The altitude grid for which the albedo is evaluated.

Returns:

quantity – Evaluated profile albedo as an array with shape (n_layers, len(bindexes)).

eval_albedo_mono(w, zgrid)[source]#

Evaluate albedo spectrum in monochromatic modes.

Parameters:
  • w (quantity) – Wavelength values at which the spectrum is to be evaluated.

  • zgrid (ZGrid) – The altitude grid for which the albedo is evaluated.

Returns:

quantity – Evaluated profile albedo as an array with shape (n_layers, len(w)).

eval_dataset(spectral_ctx, zgrid=None)#

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.

eval_dataset_ckd(bindexes, zgrid)[source]#

Return a dataset that holds the radiative properties of the corresponding atmospheric profile in CKD modes.

Parameters:
  • bindexes (list of Bindex) – One or several CKD bindexes for which to evaluate spectra.

  • zgrid (ZGrid) – The altitude grid for which the radiative profile is evaluated.

Returns:

Dataset – Radiative property dataset.

eval_dataset_mono(w, zgrid)[source]#

Return a dataset that holds the radiative properties of the corresponding atmospheric profile in monochromatic modes.

Parameters:
  • w (quantity) – Wavelength values at which spectra are to be evaluated.

  • zgrid (ZGrid) – The altitude grid for which the radiative profile is evaluated.

Returns:

Dataset – Radiative property dataset.

eval_sigma_a(spectral_ctx, zgrid=None)#

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.

eval_sigma_a_ckd(bindexes, zgrid)[source]#

Evaluate absorption coefficient spectrum in CKD modes.

Parameters:
  • bindexes (Bindex) – One or several CKD bindexes for which to evaluate the spectrum.

  • zgrid (ZGrid) – The altitude grid for which the extinction coefficient is evaluated.

Returns:

quantity – Evaluated profile absorption coefficient as an array with shape (n_layers, len(bindexes)).

eval_sigma_a_mono(w, zgrid)[source]#

Evaluate absorption coefficient spectrum in monochromatic modes.

Parameters:
  • w (quantity) – Wavelength values at which the spectrum is to be evaluated.

  • zgrid (ZGrid) – The altitude grid for which the extinction coefficient is evaluated.

Returns:

quantity – Evaluated profile absorption coefficient as an array with shape (n_layers, len(w)).

eval_sigma_s(spectral_ctx, zgrid=None)#

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.

eval_sigma_s_ckd(bindexes, zgrid)[source]#

Evaluate scattering coefficient spectrum in CKD modes.

Parameters:
  • bindexes (list of Bindex) – One or several CKD bindexes for which to evaluate the spectrum.

  • zgrid (ZGrid) – The altitude grid for which the scattering coefficient is evaluated.

Returns:

quantity – Evaluated profile scattering coefficient as an array with shape (n_layers, len(bindexes)).

eval_sigma_s_mono(w, zgrid)[source]#

Evaluate scattering coefficient spectrum in monochromatic modes.

Parameters:
  • w (quantity) – Wavelength values at which the spectrum is to be evaluated.

  • zgrid (ZGrid) – The altitude grid for which the scattering coefficient is evaluated.

Returns:

quantity – Evaluated profile scattering coefficient as an array with shape (n_layers, len(w)).

eval_sigma_t(spectral_ctx, zgrid=None)#

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.

eval_sigma_t_ckd(bindexes, zgrid)[source]#

Evaluate extinction coefficient spectrum in CKD modes.

Parameters:
  • bindexes (list of Bindex) – One or several CKD bindexes for which to evaluate the spectrum.

  • zgrid (ZGrid) – The altitude grid for which the extinction coefficient is evaluated.

Returns:

quantity – Evaluated profile extinction coefficient as an array with shape (n_layers, len(bindexes)).

eval_sigma_t_mono(w, zgrid)[source]#

Evaluate extinction coefficient spectrum in monochromatic modes.

Parameters:
  • w (quantity) – Wavelength values at which the spectrum is to be evaluated.

  • zgrid (ZGrid) – The altitude grid for which the extinction coefficient is evaluated.

Returns:

quantity – Evaluated profile extinction coefficient as an array with shape (n_layers, len(w)).

property zgrid#

Default altitude grid used for profile evaluation.