sasktran2.optical.HITRANAbsorber

sasktran2.optical.HITRANAbsorber#

class sasktran2.optical.HITRANAbsorber(molecule: str, **kwargs)[source]#

Bases: LineAbsorber

Absorption cross sections calculated using discrete absorption lines from a HITRAN-like database and broadened using the internal SASKTRAN2 Voigt line shape function.

Notes:

A line database is not included with SASKTRAN2 and must be downloaded separately. The hitran-api package is required to use HITRAN lines, and the zenodo_get package is required to download the AER line database.

Broadening is calculated “online” rather than using pre-computed tables. This is slower but allows for more flexibility in the calculation.

Derivatives with respect to pressure/temperature are currently not supported

Parameters:
  • molecule (str) – HITRAN Molecule identifier, e.g. “CO2”, “H2O”, “O3”, “CH4”

  • line_db (LineDatabase) – Line database to use, one of HITRANLineDatabase or AERLineDatabase

  • line_fn (str) – Line shape function to use, currently only “voigt” is supported

  • kwargs (dict) – Additional keyword arguments to pass to the line broadening function

__init__(molecule: str, **kwargs)[source]#

Absorption cross sections calculated using discrete absorption lines from a HITRAN-like database and broadened using the internal SASKTRAN2 Voigt line shape function.

Notes:

A line database is not included with SASKTRAN2 and must be downloaded separately. The hitran-api package is required to use HITRAN lines, and the zenodo_get package is required to download the AER line database.

Broadening is calculated “online” rather than using pre-computed tables. This is slower but allows for more flexibility in the calculation.

Derivatives with respect to pressure/temperature are currently not supported

Parameters:
  • molecule (str) – HITRAN Molecule identifier, e.g. “CO2”, “H2O”, “O3”, “CH4”

  • line_db (LineDatabase) – Line database to use, one of HITRANLineDatabase or AERLineDatabase

  • line_fn (str) – Line shape function to use, currently only “voigt” is supported

  • kwargs (dict) – Additional keyword arguments to pass to the line broadening function

Methods

__init__(molecule, **kwargs)

Absorption cross sections calculated using discrete absorption lines from a HITRAN-like database and broadened using the internal SASKTRAN2 Voigt line shape function.

atmosphere_quantities(atmo, **kwargs)

cross_section_derivatives(wavelengths_nm, ...)

cross_sections(wavelengths_nm, altitudes_m, ...)

optical_derivatives(atmo, **kwargs)