Skip to main content

Documentation Status PyPI version PyPI - Downloads DOI DOI License: GPL v3

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.

Installation

  1. Install from PyPI by running commands below in your terminal.
python3 -m pip install cgeniepy
  1. Install from GitHub:
python3 -m pip install git+https://github.com/ruiying-ocean/cgeniepy.git@master
  1. Install extra dependency
python3 -m pip install "cgeniepy[extra]"
  1. Install using uv
uv add cgeniepy
  1. Update package
pip install --upgrade cgeniepy

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)

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

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

How to contribute

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cgeniepy-0.15.2.tar.gz (8.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cgeniepy-0.15.2-py3-none-any.whl (8.7 MB view details)

Uploaded Python 3

File details

Details for the file cgeniepy-0.15.2.tar.gz.

File metadata

  • Download URL: cgeniepy-0.15.2.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for cgeniepy-0.15.2.tar.gz
Algorithm Hash digest
SHA256 e6bf6cadb93f9067af4fd10fedd20da18a13a037caf635541165bc8116b288c7
MD5 2504f47b69e4a86bef74768de807922b
BLAKE2b-256 ae96bf74420fad74316629815b9bfa99ee04503049016dc2df19a9800d59dd5d

See more details on using hashes here.

File details

Details for the file cgeniepy-0.15.2-py3-none-any.whl.

File metadata

  • Download URL: cgeniepy-0.15.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for cgeniepy-0.15.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f2c11aa4b33bbc01f92805334df27ef302657bb25077ffaaa395d3c41ca9a4e
MD5 a4a2d9e387380f3bae740527ab251b9b
BLAKE2b-256 b4a2c27ea0c081b4c122cc5b9510da215d37213162771a6ed6474982b9bad958

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.15.2 This release

2 files

0.15.1

2 files

0.15.0

2 files

0.14.9

2 files

0.14.8

2 files

0.14.7

2 files

0.14.6

2 files

0.14.5

2 files

0.14.4

2 files

0.14.3

2 files

0.13.6

2 files

0.13.5

2 files

0.13.4

2 files

0.13.3

2 files

0.13.2

2 files

0.13.1

2 files

0.13.0

2 files

0.12.4

2 files

0.12.3

2 files

0.12.2

2 files

0.12.1

2 files

0.12.0

2 files

0.11.1

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6

2 files

0.5

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page