Efficient and lazy computation of Water Mass Budgets in arbitrary sub-domains of C-grid ocean models
Project description
xwmb
xWMB is a Python package that provides a efficient and lazy computation of Water Mass Budgets in arbitrary sub-domains of C-grid ocean models. Most of the heavy lifting is done by dependency packages by the same team of developers:
sectionate: for computing transports normal to a section (open or closed)regionate: for converting between gridded masks and the closed sections that bound themxbudget: for model-agnostic wrangling of multi-level tracer budgetsxwmt: for computing bulk water mass transformations from these budgets
Documentation is not yet available, but the core API is illustrated in the example notebooks here and in each of the dependency packages.
If you use xwmb, please cite the companion manuscript: Henri F. Drake, Shanice Bailey, Raphael Dussin, Stephen M. Griffies, John Krasting, Graeme MacGilchrist, Geoffrey Stanley, Jan-Erik Tesdal, Jan D. Zika. Water Mass Transformation Budgets in Finite-Volume Generalized Vertical Coordinate Ocean Models. Journal of Advances in Modeling Earth Systems. 08 March 2025. DOI: doi.org/10.1029/2024MS004383
Quick Start Guide
Minimal installation within an existing environment
pip install xwmb
Installing from scratch using conda
This is the recommended mode of installation for developers.
git clone git@github.com:hdrake/xwmb.git
cd xwmb
conda env create -f docs/environment.yml
conda activate docs_env_xwmb
pip install -e .
You can verify that the package was properly installed by confirming it passes all of the tests with:
pytest -v
You can launch a Jupyterlab instance using this environment with:
python -m ipykernel install --user --name docs_env_xwmb --display-name "docs_env_xwmb"
jupyter-lab
Project details
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 xwmb-0.5.5.tar.gz.
File metadata
- Download URL: xwmb-0.5.5.tar.gz
- Upload date:
- Size: 396.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14a2b1cf88b857272e4d0af9793bc17e75a4b02247a765230cfd382181773b61
|
|
| MD5 |
f337b5c02b81a5838132a9fdcd02c2fd
|
|
| BLAKE2b-256 |
2dd8a3dd52573bc1eaacf37ef65694bb59e379acc3af844b482ad96008d1d77f
|
File details
Details for the file xwmb-0.5.5-py3-none-any.whl.
File metadata
- Download URL: xwmb-0.5.5-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6e0a736fa8b5083af24a46dfa713637ccc9987d281ae48eb815faf739193cc
|
|
| MD5 |
7c5dfc84415bd2a8e16cfd22a6816f29
|
|
| BLAKE2b-256 |
0ce361c963a80b788bcfabd9ea3ca506c4f32e370def1183125bc3b5f533c7a8
|