sasktran2.optical.database.OpticalDatabaseGenericScattererRust

sasktran2.optical.database.OpticalDatabaseGenericScattererRust#

class sasktran2.optical.database.OpticalDatabaseGenericScattererRust(db_filepath: Path)[source]#

Bases: OpticalDatabase

A purely scattering optical property defined by a database file. The database must contain the following

  • xs_total : The total cross section in [m^2]

  • xs_scattering : The scattering cross section in [m^2]

  • lm_a1 : the legendre coefficients for the phase function

All variables must be a function of either wavelength_nm or wavenumber_cminv, and optionally any other dimension such as particle size.

This differs from OpticalDatabaseGenericScatterer in that it uses the Rust backend for the interpolation, other than that the two classes are identical.

Parameters:

db_filepath (Path) – Path to the database file

__init__(db_filepath: Path) None[source]#

A purely scattering optical property defined by a database file. The database must contain the following

  • xs_total : The total cross section in [m^2]

  • xs_scattering : The scattering cross section in [m^2]

  • lm_a1 : the legendre coefficients for the phase function

All variables must be a function of either wavelength_nm or wavenumber_cminv, and optionally any other dimension such as particle size.

This differs from OpticalDatabaseGenericScatterer in that it uses the Rust backend for the interpolation, other than that the two classes are identical.

Parameters:

db_filepath (Path) – Path to the database file

Methods

__init__(db_filepath)

A purely scattering optical property defined by a database file.

atmosphere_quantities(atmo, **kwargs)

cross_section_derivatives(wavelengths_nm, ...)

cross_sections(wavelengths_nm, altitudes_m, ...)

optical_derivatives(atmo, **kwargs)