Skip to main content

A Python wrapper to setup and build the hydrologic modelling framework Raven.

Project description

Raven-hydro is a Python-based installer for the hydrologic modelling framework Raven.

  • Free software: Apache Software License v2.0

About

Raven is a hydrological modeling framework that lets hydrologists build hydrological models by combining different hydrological processes together. It can also be used to emulate a variety of existing lumped and distributed models. Model structure, parameters, initial conditions and forcing files are configured in text files, which Raven parses to build and run hydrological simulations. A detailed description about modeling capability of Raven can be found in the docs.

Purpose

The goal of this project is to provide a multiplatform installer for the Raven hydrological model using scikit-build-core and pybind11. The compiled binary is built with support for NetCDF4, and uses a custom CMakeLists.txt, rather than the one provided with the Raven source code, in order to leverage pip for handling the installation of binaries and libraries.

This project differs from RavenPy by solely providing a means for downloading, compiling, and installing the Raven binary (with NetCDF4 support) on multiple platforms and as well as providing version control and updating via pip/PyPI.

Features

  • Download and compile the Raven hydrological model with pip
  • Multiplatform support (macOS, Linux, Windows, BSD, etc.)

Installation

Warning This build of Raven requires that NetCDF4 libraries are installed on the system, exposed on the $PATH, and discoverable using the FindNetCDF.cmake helper script.

On Linux, this can be provided by the libnetcdf-dev system library; On macOS by the netcdf homebrew package; And on Windows by using UNIDATA's pre-built binaries.

This can also be provided by the libnetcdf package available at conda-forge, though this is not guaranteed to work on macOS at time of writing (further research required).

raven-hydro can be installed from GitHub using the following command:

$ pip install git+https://github.com/Ouranosinc/raven-hydro

For development purposes, we recommend cloning the repository and performing an --editable installation:

$ git clone git@github.com:Ouranosinc/raven-hydro
$ cd raven-hydro
$ pip install --editable .

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

raven-hydro-0.1.0.tar.gz (708.6 kB view details)

Uploaded Source

Built Distribution

raven_hydro-0.1.0-cp310-cp310-manylinux_2_36_x86_64.whl (953.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.36+ x86-64

File details

Details for the file raven-hydro-0.1.0.tar.gz.

File metadata

  • Download URL: raven-hydro-0.1.0.tar.gz
  • Upload date:
  • Size: 708.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for raven-hydro-0.1.0.tar.gz
Algorithm Hash digest
SHA256 695feaf4846a1213f547a4d841855711e9ba0664d26b7c59efb21a53b06f815e
MD5 48935fd4d112df57448bcee86fd666df
BLAKE2b-256 beea0475b0e184672c5b8eea8cf6db6a7ea9e45de877a204003f446d5fa70017

See more details on using hashes here.

File details

Details for the file raven_hydro-0.1.0-cp310-cp310-manylinux_2_36_x86_64.whl.

File metadata

File hashes

Hashes for raven_hydro-0.1.0-cp310-cp310-manylinux_2_36_x86_64.whl
Algorithm Hash digest
SHA256 03fcc356a2666c3d58f3678be23a2f28500f3cf5241166697da8fdc87600c0c7
MD5 0f4b7490264f65616e355028cd9d2f01
BLAKE2b-256 88e401cc96e82e2071df84e26cacea6d2d808a4af0fa4551074d05a964ab7619

See more details on using hashes here.

Supported by

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