Metadata-Version: 2.4
Name: skyborn-backend
Version: 0.2.1
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Requires-Dist: numpy>=1.24.0
Requires-Dist: pytest>=7.0 ; extra == 'dev'
Provides-Extra: dev
License-File: LICENSE
Summary: Pure-Rust computational kernels for Skyborn
Keywords: atmospheric-science,meteorology,climate,rust,kernels
Author-email: Qianye Su <suqianye2000@gmail.com>
License-Expression: BSD-3-Clause
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Bug Tracker, https://github.com/skyborn-org/skyborn-backend/issues
Project-URL: Documentation, https://skyborn.readthedocs.io/
Project-URL: Homepage, https://github.com/skyborn-org/skyborn-backend
Project-URL: Repository, https://github.com/skyborn-org/skyborn-backend

# skyborn-backend (`skybornbackend`)

Prebuilt Pure-Rust numerical computation kernels powering the [**Skyborn**](https://github.com/skyborn-org/Skyborn) atmospheric and climate science ecosystem.

Part of the [**Skyborn** (`skyborn-org`)](https://github.com/skyborn-org) organization.

## Included Compiled Modules

- `skybornbackend.gridfill`: Poisson spherical/rectangular gap-filling (`_gridfill`).
- `skybornbackend.interp`: Vertical hybrid/pressure/isentropic interpolation, horizontal bilinear/conserving regridding, and curvilinear-to-rectilinear kernels.
- `skybornbackend.calc`:
  - `GPI`: Potential intensity kernels (`tropical_cyclone_potential_intensity`)
  - `cape` & `dcape`: Convective and downdraft CAPE kernels
  - `causality`: Batch Liang–Kleeman information flow & AR(1) kernels
  - `filter`: Lanczos filtering kernels
  - `geostrophic`: Geostrophic wind solver (`geostrophicwind`)
  - `growth_rate`: Eady baroclinic & barotropic growth rate kernels
  - `mann_kendall`: Vectorized multidimensional Mann–Kendall & Theil–Sen kernels
  - `srh`: Storm-relative helicity kernels
  - `troposphere`: WMO tropopause height kernels

## Installation

Most users should install the high-level library instead, which pulls this package automatically:

```bash
pip install skyborn
```

## Developer Incremental Build Tips

```bash
# Run Rust workspace unit tests & doc check (uses RAM disk on macOS):
./tools/with_ramdisk.sh cargo test --release --workspace --exclude skybornbackend-py

# Build a fast incremental wheel (Thin LTO):
./tools/with_ramdisk.sh maturin build --release -m rust/skybornbackend-py/Cargo.toml

# Build a release distribution wheel (Fat LTO):
./tools/with_ramdisk.sh maturin build --profile dist -m rust/skybornbackend-py/Cargo.toml
```

## Legacy Reference Archive

The original `0.1.x` Fortran, C, and Cython reference sources (plus legacy `meson.build` and `setup.py` scripts) are archived for reference under [`legacy/`](legacy/README.md) (and git tag `v0.1.0`) and are excluded from binary wheels and source distributions.

## License

BSD 3-Clause License. See [LICENSE](LICENSE).

