TORRENTpy: a tool for TranspORt thRough the catchmEnt NeTwork
Project description
TORRENTpy - An open-source tool for water, solutes, and particles TranspORt thRough the catchmEnt NeTwork
TORRENTpy is an open-source framework in Python for water, solutes, and particles transport through catchments discretised in lumped and semi-distributed manners. It is licensed under GNU GPL-3.0 (see licence file provided). The framework simulates the hydrological fluxes using top-down catchment models that can be applied at the catchment scale (lumped manner) or at the sub-catchment scale (semi-distributed manner). Water quality models can complement the catchment models to simulate the water-borne contaminants (both solutes and particles) at the scale where the catchment models are applied (i.e. catchment scale or sub-catchment scale).
How to Install
TORRENTpy is available on PyPI, so you can simply use pip:
python -m pip install torrentpy
Alternatively, you can download the source code (i.e. this repository) and use the command:
python setup.py install
Dependencies
TORRENTpy requires the popular Python package numpy
to be installed on the Python implementation where torrentpy
is installed. For Python 2 and 3 compatibilities, the package future
is also required.
Additional optional dependencies include netCDF4
if one wishes to use NetCDF files as input and/or output, graphviz
if one wishes to use the utility connectivity.py
and plot the network it generates, and smartcpp
if one wishes to use an accelerator module for the SMART
model (it gives access to a C++ extension for the SMART model).
List of Models currently available in TORRENTpy
-
Rainfall-Runoff Models:
SMART
model (catchment runoff + river routing)
-
Water Quality Models:
INCA
model (catchment runoff + river routing)
Input/Output File Formats
TORRENTpy is designed to read CSV (Comma-Separated Values) files and NetCDF (Network Common Data Form) files. However, the use of NetCDF files requires the Python package netCDF4
to be installed on the Python implementation where this package is installed (specific pre-requisites prior the installation of netCDF4
exist and can be found at unidata.github.io/netcdf4-python).
Version History
- 0.2.0 [12 Jul 2018]: Operational version of TORRENTpy, with Python 3 compatibility
- Fixes relative module import issues that made v0.1.0 unusable out of the box
- Adds clean up function for output folder to avoid appending to files from previous simulations
- Makes all scripts Python 3 compatible by using
builtins
andio
packages - Corrects check on class instance for user-defined models added to KnowledgeBase
- 0.1.0 [05 Jul 2018]: First version of TORRENTpy
- Attention, this version is not functioning due to relative module import issues.
Acknowledgment
This tool was developed with the financial support of Ireland's Environmental Protection Agency (Grant Number 2014-W-LS-5).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file torrentpy-0.2.0.tar.gz
.
File metadata
- Download URL: torrentpy-0.2.0.tar.gz
- Upload date:
- Size: 51.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5447374269ca6738ae99447821f3267d1eecff5443b5b5b059e9ed7ce32c1df |
|
MD5 | 9bee1052be2e3e2dcdcf123edf692874 |
|
BLAKE2b-256 | a337e91e51f0e7beb6ee958fc48d41e8cb2490e0053d8fbaf5f465388cc73b31 |
File details
Details for the file torrentpy-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: torrentpy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 62.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41a3a3df48ae4a28ff9313976c8502153245039182dcd4196e778f170b56d0fb |
|
MD5 | 1de8d5c87c3058f190fff451702b9315 |
|
BLAKE2b-256 | e5ddec150dc2dc5d321dd7ee33e4b6ef9d95f919a5d2045122f23a7305868ddf |
File details
Details for the file torrentpy-0.2.0-py2-none-any.whl
.
File metadata
- Download URL: torrentpy-0.2.0-py2-none-any.whl
- Upload date:
- Size: 63.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9cf41103b864ea1ae7abc7f4fa9b831e3985a1ef978c0ac8c60ed9a15a141a6 |
|
MD5 | b7a6c5aedf4f87ec4ff835e61d3d3bae |
|
BLAKE2b-256 | 7b476df370662a7fe41d6da5896cfa159b212ec077db23befbc83e075637fb94 |