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.

cgeniepy is in beta stage with main functionalities being accompolished.

Installation

  1. Install from PyPI.
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]"

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.14.5.tar.gz (8.0 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.14.5-py3-none-any.whl (8.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cgeniepy-0.14.5.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

Hashes for cgeniepy-0.14.5.tar.gz
Algorithm Hash digest
SHA256 ea0c053587fca28a7d9ed8c294641879559a220544661df5ccef5ecaa7e4c19a
MD5 eea3fdc4253120abb976145f2c047110
BLAKE2b-256 4ba871373e237a7303dc79929e4c3fe09811d7e48aa0becf48dae6ba6bf5b8c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cgeniepy-0.14.5-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

Hashes for cgeniepy-0.14.5-py3-none-any.whl
Algorithm Hash digest
SHA256 20d3e5c46cbcc6a02ce14d53a5793e38294860cfe8ab60c0c470692271e717a3
MD5 83c82ad713f34e274e8581c16417f326
BLAKE2b-256 aa2f50bcf0e195704f0bfd46ffd792986647c40733a6755db80882d828db6cb1

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