sasktran2.optical.database.OpticalDatabase#
- class sasktran2.optical.database.OpticalDatabase(db_filepath: Path | None = None, db: Dataset | None = None)[source]#
Bases:
OpticalPropertyAn optical property that is defined by a database file. This is just a base class to handle file loading, derived classes must be used as actual optical properties.
- Parameters:
db_filepath (Path, optional) – Path to the optical database file.
db (xr.Dataset, optional) – An already opened database. Exactly one of
db_filepathanddbmust be supplied.
- Raises:
ValueError – If neither or both database inputs are supplied.
- __init__(db_filepath: Path | None = None, db: Dataset | None = None) None[source]#
An optical property that is defined by a database file. This is just a base class to handle file loading, derived classes must be used as actual optical properties.
- Parameters:
db_filepath (Path, optional) – Path to the optical database file.
db (xr.Dataset, optional) – An already opened database. Exactly one of
db_filepathanddbmust be supplied.
- Raises:
ValueError – If neither or both database inputs are supplied.
Methods
__init__([db_filepath, db])An optical property that is defined by a database file.
atmosphere_quantities(atmo, **kwargs)cross_section_derivatives(wavelengths_nm, ...)cross_sections(wavelengths_nm, altitudes_m, ...)optical_derivatives(atmo, **kwargs)