Skip to main content

A Python package to read, analyse and visualise cGENIE Earth System Model output

Project description

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

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

cgeniepy-0.15.1.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.1-py3-none-any.whl (8.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cgeniepy-0.15.1.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for cgeniepy-0.15.1.tar.gz
Algorithm Hash digest
SHA256 f919623d3423f4e48978fe3306d43ab9e2bd99bf0fec5e9de4c3834e7c194bf9
MD5 4a79575cb89bf8d952fd81620cec9acb
BLAKE2b-256 9d28eca5f747225877a5035db131ae5ed9d4f147d5a5a9ca0ba43cd2a7090cae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cgeniepy-0.15.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for cgeniepy-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a0258153837fe80df224cbc5dc853f7f1ad62637ccde5315c838c1c117bb39
MD5 a73533b2c329fb7d36ee9cf336a84778
BLAKE2b-256 85f14932aa45a5015ca30e9811dde9caf3e9ded476e8fac7db56d07d43ea4d8c

See more details on using hashes here.

Supported by

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