An absorption database reader for the Eradiate radiative transfer model.
Project description
AxsDB — The Eradiate Absorption Cross-section Database Interface
This library provides an interface to read and query the absorption databases of the Eradiate radiative transfer model.
Features
- Monochromatic and CKD databases: Read and evaluate absorption coefficients for both monochromatic and correlated-k distribution spectral representations.
- Fast interpolation: Numba-accelerated multi-dimensional interpolation of thermophysical profiles (pressure, temperature, mole fractions).
- Configurable error handling: Fine-grained, per-coordinate control over out-of-bounds behaviour (clamp, fill, raise, warn).
- Efficient I/O: Lazy or eager loading of NetCDF data files, with LRU caching for repeated lookups.
- xarray and Pint integration: Works natively with xarray datasets and Pint quantities.
- CLI: Validate database integrity from the command line with
axsdb check.
Installation
Python 3.9 or later is required.
pip install axsdb
Quick start
import xarray as xr
from axsdb import MonoAbsorptionDatabase
from axsdb.units import get_unit_registry
ureg = get_unit_registry()
# Open a database directory
db = MonoAbsorptionDatabase.from_directory("path/to/database")
# Load a thermophysical profile
thermoprops = xr.load_dataset("path/to/thermoprops.nc")
# Evaluate the absorption coefficient at a given wavelength
sigma_a = db.eval_sigma_a_mono(
w=550.0 * ureg.nm,
thermoprops=thermoprops,
)
For CKD databases, use CKDAbsorptionDatabase and eval_sigma_a_ckd (which
takes an additional g parameter for the quadrature point).
CLI
AxsDB ships a command-line tool to validate databases:
# Check a monochromatic database
axsdb check path/to/database -m mono
# Check and fix missing index files
axsdb check path/to/database -m ckd --fix
Documentation
Full documentation is available at axsdb.readthedocs.io.
License
AxsDB is distributed under the terms of the GNU Lesser General Public License v3.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file axsdb-0.1.1.tar.gz.
File metadata
- Download URL: axsdb-0.1.1.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a5233ed717a7e238d1e3b72fde39c50943f5101d86edb7a11446e6b021416f
|
|
| MD5 |
10a6f8cbf6690ebbe55f18a979fbd0ec
|
|
| BLAKE2b-256 |
09bb1ff370de710b6e5962b86bde615a1e25d1577a1b60dbfc5673ca4e0facc4
|
Provenance
The following attestation bundles were made for axsdb-0.1.1.tar.gz:
Publisher:
release.yml on eradiate/axsdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axsdb-0.1.1.tar.gz -
Subject digest:
06a5233ed717a7e238d1e3b72fde39c50943f5101d86edb7a11446e6b021416f - Sigstore transparency entry: 960135687
- Sigstore integration time:
-
Permalink:
eradiate/axsdb@47b60cd230d671a88e6259dcbce33db9bf9933e1 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/eradiate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@47b60cd230d671a88e6259dcbce33db9bf9933e1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file axsdb-0.1.1-py3-none-any.whl.
File metadata
- Download URL: axsdb-0.1.1-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d0c5255d281b06efd8666c709981a8605861b597ea47a5c9d3de9a37d225773
|
|
| MD5 |
61b3fc7c6c55be22ab141ea92973cc2e
|
|
| BLAKE2b-256 |
ff63ac16b7af46f46b5ace54e375e530859a29d407ac0692f6a7c1e5ab83a3c0
|
Provenance
The following attestation bundles were made for axsdb-0.1.1-py3-none-any.whl:
Publisher:
release.yml on eradiate/axsdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axsdb-0.1.1-py3-none-any.whl -
Subject digest:
9d0c5255d281b06efd8666c709981a8605861b597ea47a5c9d3de9a37d225773 - Sigstore transparency entry: 960135722
- Sigstore integration time:
-
Permalink:
eradiate/axsdb@47b60cd230d671a88e6259dcbce33db9bf9933e1 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/eradiate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@47b60cd230d671a88e6259dcbce33db9bf9933e1 -
Trigger Event:
push
-
Statement type: