A Python package to read, analyse and visualise cGENIE Earth System Model output
Project description
cgeniepy is a Python package to analyse the output of cGENIE Earth System Model. It aims to provide a set of convenient tools for the post-simulation work, including analysing the model output, plotting publication-quality figures, and conducting model-data comparison.
⚠ cgeniepy is in beta stage with main functionalities being accompolished.
Installation
- Install from PyPI.
python3 -m pip install cgeniepy
- Install from GitHub:
python3 -m pip install git+https://github.com/ruiying-ocean/cgeniepy.git@master
- Install extra dependency
python3 -m pip install "cgeniepy[extra]"
Quickstart
I have uploaded a sample model run, which is a preindustrial spinup configuration with marine ecosystem and biogeochemistry enabled (C, P, Fe, Si, O).
import cgeniepy
from cgeniepy.model import GenieModel
model = cgeniepy.sample_model()
## for your own model experiment
model = GenieModel("directory_to_your_model_output")
## select variable -> select coordinate -> operation like mean or plot
model.get_var('ocn_sur_temp').isel(time=-1).plot(colorbar=True)
- If you want to try other cGENIE model runs, you may go to this zenodo record (https://zenodo.org/records/10575295).
- If you want to try non-cGENIE model, I have also uploaded two example files to here (https://zenodo.org/records/13786014).
Documentation
An online documentation is hosted in readthedoc.
Citation
Ying, R. (2024). cgeniepy: A Python package for analysing cGENIE Earth System Model output. Journal of Open Source Software, 9(101), 6762. https://doi.org/10.21105/joss.06762
Logo
Logo is designed by me using free righteous font.
Alternative
- Prof. Andy Ridgwell's muffinplot
- Dr. Alex Phol's genie_basicdiags
Raise a bug
Please use GitHub's Issues to raise a bug. This makes the issues traceable so that future users having the same problem can find the answer in the public domain.
Contributing
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 cgeniepy-0.14.6.tar.gz.
File metadata
- Download URL: cgeniepy-0.14.6.tar.gz
- Upload date:
- Size: 8.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b414c2aad6f5e73c50d63f9ac6882dca6961ad1f51b96c9bd50dad833910b22
|
|
| MD5 |
240e084d9640b416f509c0b57787c6c0
|
|
| BLAKE2b-256 |
b8537363c58056fd5e2d971863eefabf0502b6d6756e363078f30a1501521790
|
File details
Details for the file cgeniepy-0.14.6-py3-none-any.whl.
File metadata
- Download URL: cgeniepy-0.14.6-py3-none-any.whl
- Upload date:
- Size: 8.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a12b0450c3d367e03321ad0ccee213c5d10f9c362b524e49f869811303d7d575
|
|
| MD5 |
a22cc42486acc48209cdc31fd3749fbe
|
|
| BLAKE2b-256 |
f65faf0b85cdf4a173970b8f46777a094b9f8fb0e94aad0c292e63d85d867485
|