Skip to main content

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

Project description

RavenPy

https://img.shields.io/pypi/v/ravenpy.svg https://anaconda.org/conda-forge/ravenpy/badges/installer/conda.svg Build status Documentation Status

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

Features

  • Download and compile Raven with pip

  • Configure, run and parse Raven outputs from Python

  • Parallel simulations over parameters, models or watersheds

  • Utility command to create grid weight files

  • Extract physiographic information about watersheds

  • Algorithms to estimate model parameters from ungauged watersheds

  • Exposes outputs (flow, storage) as xarray.DataArray objects

Install

Please see the detailed installation docs.

Credits

RavenPy’s development has been funded by CANARIE.

This package was created with Cookiecutter and the Ouranosinc/cookiecutter-pypackage project template.

History

0.5.2

  • Simplify RVC configuration logic.

  • Add ravenpy.utilities.testdata.file_md5_checksum (previously in xarray.tutorial).

0.5.1

  • Some adjustments and bugfixes needed for RavenWPS.

  • Refactoring of some internal logic in ravenpy.config.rvs.RVT.

  • Improvements to typing with the help of mypy.

0.5.0

  • Refactoring of the RV config subsystem:

    • The config is fully encapsulated into its own class: ravenpy.config.rvs.Config.

    • The emulator RV templates are inline in their emulator classes.

  • The emulators have their own submodule: ravenpy.models.emulators.

  • The “importers” have been renamed to “extractors” and they have their own submodule: ravenpy.extractors.

0.4.2

  • Update to RavenC revision 318 to fix OPENDAP access for StationForcing commands.

  • Fix grid_weights set to None by default.

  • Pass nc_index to ObservationData command.

  • Expose more cleanly RavenC errors and warnings.

0.4.1

  • Add notebook about hindcast verification skill.

  • Add notebook about routing capability.

  • Modify geoserver functions to have them return GeoJSON instead of GML.

  • Collect upstream watershed aggregation logic.

  • Fix RVC bug.

0.4.0

This is an interim version making one step toward semi-distributed modeling support. Model configuration is still in flux and will be significantly modified with 0.5. The major change in this version is that model configuration supports passing multiple HRU objects, instead of simply passing area, latitude, longitude and elevation for a single HRU.

  • GR4JCN emulator now supports routing mode.

  • Add BLENDED model emulator.

  • DAP links for forcing files are now supported.

  • Added support for tox-based localized installation and testing with python-pip.

  • Now supporting Python 3.7, 3.8, and 3.9.

  • Build testing for pip and conda-based builds with GitHub CI.

0.3.1

  • Update external dependencies (Raven, OSTRICH) to facilitate Conda packaging.

0.3.0

  • Migration and refactoring of GIS and IO utilities (utils.py, utilities/gis.py) from RavenWPS to RavenPy.

  • RavenPy can now be installed from PyPI without GIS dependencies (limited functionality).

  • Hydro routing product is now supported from geoserver.py (a notebook has been added to demonstrate the new functions).

  • New script ravenpy aggregate-forcings-to-hrus to aggregate NetCDF files and compute updated grid weights.

  • Add the basis for a new routing emulator option (WIP).

  • Add climpred verification capabilities.

0.2.3

  • Regionalisation data is now part of the package.

  • Fix tests that were not using testdata properly.

  • Add tests for external dataset access.

  • utilities.testdata.get_local_testdata now raises an exception when it finds no dataset corresponding to the user pattern.

0.2.2

  • Set wcs.getCoverage timeout to 120 seconds.

  • Fix Raven.parse_results logic when no flow observations are present and no diagnostic file is created.

  • Fix ECCC test where input was cached and shadowed forecast input data.

0.2.1

  • Fix xarray caching bug in regionalization.

0.2.0

  • Refactoring of ravenpy.utilities.testdata functions.

  • Bump xclim to 0.23.

0.1.7

  • Fix xarray caching bug affecting climatological ESP forecasts (#33).

  • Fix deprecation issue with Fiona.

0.1.6 (2021-01-15)

  • Correct installer bugs.

0.1.5 (2021-01-14)

  • Release with docs.

0.1.0 (2020-12-20)

  • First release on PyPI.

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

ravenpy-0.5.2.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

ravenpy-0.5.2-py3-none-any.whl (6.5 MB view details)

Uploaded Python 3

File details

Details for the file ravenpy-0.5.2.tar.gz.

File metadata

  • Download URL: ravenpy-0.5.2.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for ravenpy-0.5.2.tar.gz
Algorithm Hash digest
SHA256 bf0dfa8b30f26c4464ea5f285a0c7e91475fbc9fed3a02e1a7d5faeb233be6f6
MD5 8722a5227b596a8aeec36e74b572c9be
BLAKE2b-256 db821e74cff781fd57d2fc82c877d75632c6346a43030495ece933a5d0edd10d

See more details on using hashes here.

Provenance

File details

Details for the file ravenpy-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: ravenpy-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for ravenpy-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65e41494deef99f3907a602198c83c48dafb409dafd40a4c6dfecd6129445c3a
MD5 a2032ae1d00323023d50c505e7fd6dd9
BLAKE2b-256 88d0eac27403ab1d0beebb63c2dbe83477a749782d22a05d007bcc79d6f49937

See more details on using hashes here.

Provenance

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