sasktran2.constituent.Rayleigh

sasktran2.constituent.Rayleigh#

class sasktran2.constituent.Rayleigh(method: str = 'bates', method_kwargs: dict | None = None)[source]#

Bases: Constituent

An implementation of Rayleigh scattering. Cross sections (and depolarization factors) can be calculated multiple ways, with the default method being that of ‘bates’.

Rayleigh scattering number density is estimated through the ideal gas law.

This Constituent requires that the atmosphere object have temperature_k, pressure_pa, and wavelength_nm are all defined inside the sasktran2.Atmosphere object.

Parameters:
  • method (str, optional) – Method to use to calculate the cross section. Supported methods are [‘bates’], by default ‘bates’

  • method_kwargs (dict, optional) – kwargs that can be passed to the method

Raises:

ValueError – If input method is not supported

__init__(method: str = 'bates', method_kwargs: dict | None = None)[source]#

An implementation of Rayleigh scattering. Cross sections (and depolarization factors) can be calculated multiple ways, with the default method being that of ‘bates’.

Rayleigh scattering number density is estimated through the ideal gas law.

This Constituent requires that the atmosphere object have temperature_k, pressure_pa, and wavelength_nm are all defined inside the sasktran2.Atmosphere object.

Parameters:
  • method (str, optional) – Method to use to calculate the cross section. Supported methods are [‘bates’], by default ‘bates’

  • method_kwargs (dict, optional) – kwargs that can be passed to the method

Raises:

ValueError – If input method is not supported

Methods

__init__([method, method_kwargs])

An implementation of Rayleigh scattering.

add_to_atmosphere(atmo)

register_derivative(atmo, name)