Skip to main content

dynamic model coupling of LPJmL

Project description

pycoupler: dynamic model coupling of LPJmL

DOI CI codecov PyPI version

An LPJmL-Python interface for operating LPJmL in a Python environment and coupling it with Python models, programmes or simple programming scripts. pycoupler was written to establish a coupled World-Earth modeling framework, copan:LPJmL, based on copan:CORE and LPJmL. Coupling with LPJmL is possible on an annual basis, i.e. for each year in which LPJmL is in coupling mode, the desired inputs must be passed via pycoupler. LPJmL simulates the corresponding year and returns the desired outputs at the end of the year. The coupled programme can use the output data to generate new inputs for the next year.

Overview

LPJmL Config ⚙ for handling LPJmL configurations

  • Read & write ✍ LPJmL configuration files as LPJmLConfig objects
  • Set options & parameters for spinup, transient and coupled simulations
  • regrid() 🌐 LPJmL output data for country-specific simulations
  • LPJmL can be checked check_lpjml() 🔍 and operated run_lpjml()submit_lpjml() 🚀 with written configuration files

LPJmL Coupler 🔌 to couple LPJmL with other models

  • LPJmLCoupler class to initiate bi-directional, annual coupling to LPJmL
  • 📥 Read output data (annual) from LPJmL
  • 📤 Send input data (annual) to LPJmL

LPJmL Data 💾 for reading and processing LPJmL data

  • xarray-based data classes
  • Read LPJmL netCDF files 🗺 as LPJmLData or LPJmLDataSetobjects
  • LPJmLMetaData for reading and handling LPJmL meta files or header data

Installation

pip install pycoupler

Prerequisites

Please clone and compile LPJmL in advance.
Make sure to also have set the working environment for LPJmL correctly if you are not working on the PIK HPC (with Slurm Workload Manager).

Questions / Problems

In case of questions please contact Jannes Breier jannesbr@pik-potsdam.de or open an issue.

Contributing

Merge requests are welcome, see CONTRIBUTING.md. For major changes, please open an issue first to discuss what you would like to change.

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

pycoupler-1.6.4.dev2.tar.gz (11.3 MB view details)

Uploaded Source

Built Distribution

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

pycoupler-1.6.4.dev2-py3-none-any.whl (67.6 kB view details)

Uploaded Python 3

File details

Details for the file pycoupler-1.6.4.dev2.tar.gz.

File metadata

  • Download URL: pycoupler-1.6.4.dev2.tar.gz
  • Upload date:
  • Size: 11.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for pycoupler-1.6.4.dev2.tar.gz
Algorithm Hash digest
SHA256 d96960dc2f7c2a3395e421ee0964eeb02a7c60ef525b12c35e222664c83620a1
MD5 9aa203ca9541ec0c06792522feec645b
BLAKE2b-256 e5d2f9c88666dcd7d51d08d77e5d4ed069fbfd2c7e259b0542bc78b0625bcede

See more details on using hashes here.

File details

Details for the file pycoupler-1.6.4.dev2-py3-none-any.whl.

File metadata

  • Download URL: pycoupler-1.6.4.dev2-py3-none-any.whl
  • Upload date:
  • Size: 67.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for pycoupler-1.6.4.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 479b616102baaf85fa46c0f7238ac4684f670dc74f31bbe77121ddc789d7a720
MD5 16c87b153a90f64ab0063577bb9e2e78
BLAKE2b-256 893139460e6f0d981ac1ea7e92e519a7c39e0ca314dcc199b3e21e74b18eba71

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