Skip to main content

Coupled snowpack and ice surface energy and mass balance model in Python.

Project description

https://cryo-tools.org/wp-content/uploads/2019/11/COSIPY-logo-2500px.png

The coupled snowpack and ice surface energy and mass balance model in Python COSIPY solves the energy balance at the surface and is coupled to an adaptive vertical multi-layer subsurface module.

Documentation

The documentation for COSIPY is available at the following link: https://cosipy.readthedocs.io/en/latest/

Confused about migrating to the new .toml configuration system? The documentation contains an in-depth tutorial and a guide on upgrading.

Convert your existing configuration files before merging the latest update:

pip install toml
git fetch --all
git checkout master -- convert_config.py
python convert_config.py  # generate .toml files

This works on any branch regardless of local changes. Alternatively you can copy and run convert_config.py into any older COSIPY source tree.

This will preserve your configuration for config.py, constants.py, aws2cosipyConfig.py and wrf2cosipyConfig.py. Parameters for create_static must still be added manually to the generated utilities_config.toml.

Checkout a new branch with a clean version of COSIPY and merge your modifications. This minimises the number of merge conflicts. After updating to the latest version of COSIPY, run python COSIPY.py --help to see how to specify paths to configuration files. COSIPY will default to ./config.toml, ./constants.toml, ./slurm_config.toml, ./utilities_config.toml in the current working directory.

Installation

Install GDAL:

sudo apt-get install gdal-bin libgdal-dev
pip install --upgrade gdal==`gdal-config --version` pybind11  # with pip
conda install gdal  # with conda

Install COSIPY with pip (for general use):

pip install cosipymodel
cosipy-setup  # generate template configuration files
cosipy-help   # view help

Install COSIPY as an editable (recommended for development):

git clone https://github.com/cryotools/cosipy.git
cd cosipy
make install          # using conda/mamba
make install-pip-dev  # using pip

cosipy-help           # view help

Install COSIPY from source (for development):

git clone https://github.com/cryotools/cosipy.git
cd cosipy
make install-conda-envs                      # install using conda/mamba
conda install --file conda_requirements.txt  # install with conda

pip install -r requirements.txt              # install default environment
pip install -r dev_requirements.txt          # install dev environment

python3 COSIPY.py -h
make commands

Communication and Support

We are using the groupware slack for communication (inform about new releases, bugs, features, …) and support: https://cosipy.slack.com

About

Tests:
https://github.com/cryotools/cosipy/actions/workflows/python-app.yml/badge.svg?branch=master https://readthedocs.org/projects/cosipy/badge/?version=latest http://www.repostatus.org/badges/latest/active.svg https://travis-ci.org/cryotools/cosipy.svg?branch=master https://codecov.io/gh/cryotools/cosipy/branch/master/graph/badge.svg
Citation:
https://img.shields.io/badge/Citation-GMD%20paper-orange.svg https://zenodo.org/badge/DOI/10.5281/zenodo.3902191.svg
License:
https://img.shields.io/badge/License-GPLv3-blue.svg

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

cosipymodel-2.0.2.tar.gz (112.1 kB view details)

Uploaded Source

Built Distribution

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

cosipymodel-2.0.2-py3-none-any.whl (139.9 kB view details)

Uploaded Python 3

File details

Details for the file cosipymodel-2.0.2.tar.gz.

File metadata

  • Download URL: cosipymodel-2.0.2.tar.gz
  • Upload date:
  • Size: 112.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for cosipymodel-2.0.2.tar.gz
Algorithm Hash digest
SHA256 1ef6f24c75b8f57f0b0eee8b8bbb4de739fed431c6e6528e8161384dd44cba91
MD5 aba8b4318683b57f870d57287d702c5e
BLAKE2b-256 73165a8ef801ec52517054155c9331e1bf3debd39fa402fe117f223aed7d028a

See more details on using hashes here.

File details

Details for the file cosipymodel-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: cosipymodel-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 139.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for cosipymodel-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43bbe757d40098add874b42e53e71bd69574edc84cb717db16da86ed6adc874f
MD5 73741f99151e884549e7d8277e2a308c
BLAKE2b-256 c1f7118a8fa75e20cab90ae57b35678f6a0dd25f51479b5fdbe865b4b44d4499

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