hydrotoolbox 2.0.12
pip install hydrotoolbox
Released:
Command line script and Python library for analysis of flow time-series.
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD-3-Clause)
- Author: Tim Cera
- Tags time-series, cli-app, hydrology, baseflow, hydrograph-recession, hydrographic
- Requires: Python >=3.9
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Project description
hydrotoolbox - Quick Guide
The hydrotoolbox is a Python script for hydrologic calculations and analysis or by function calls within Python. Uses pandas (http://pandas.pydata.org/) or numpy (http://numpy.scipy.org) for any heavy lifting.
Requirements
python 3.7 or higher
Installation
pip
pip install hydrotoolbox
conda
conda install -c conda-forge hydrotoolbox
Usage - API
All functions return a PANDAS DataFrame. Input can be a CSV or TAB separated file, or a PANDAS DataFrame and is supplied to the function via the ‘input_ts’ keyword.
Simply import hydrotoolbox:
from hydrotoolbox import hydrotoolbox # Then you could call the functions ntsd = hydrotoolbox.baseflow_sep(method='boughton', input_ts='tests/test_fill_01.csv')
Usage - Command Line
All functions are available from the command line. The command line interface is a wrapper around the functions in the hydrotoolbox module. The command line arguments match one-to-one with the function arguments.
To get help for the command line interface, run:
hydrotoolbox --help
Which gives you the following output:
usage: hydrotoolbox [-h] [-v] {baseflow_sep, recession, flow_duration, storm_events, indices, exceedance_time, about} ... positional arguments: {baseflow_sep,recession,flow_duration,storm_events,indices,exceedance_time,about} baseflow_sep baseflow_sep subcommand recession Recession coefficient. flow_duration Flow duration. storm_events Storm events. indices Calculate hydrologic indices. exceedance_time Calculate the time that a time series exceeds (or is below) a threshold. about Display version number and system information. options: -h, --help show this help message and exit -v, --version show program's version number and exit
To get help for a specific subcommand, run:
hydrotoolbox <subcommand> --help
The default for all of the subcommands is to accept data from stdin (typically a pipe). If a subcommand accepts an input file for an argument, you can use “–input_ts=input_file_name.csv”, or to explicitly specify from stdin (the default) “–input_ts=’-‘”.
For the subcommands that output data it is printed to the screen and you can then redirect to a file.
Project details
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD-3-Clause)
- Author: Tim Cera
- Tags time-series, cli-app, hydrology, baseflow, hydrograph-recession, hydrographic
- Requires: Python >=3.9
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
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 Distribution
File details
Details for the file hydrotoolbox-2.0.12.tar.gz
.
File metadata
- Download URL: hydrotoolbox-2.0.12.tar.gz
- Upload date:
- Size: 5.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab2451073aef05d761ef70681d2d7b2072a946e6d9b0624ee18ba69e2d20e299 |
|
MD5 | 7354cad6e0fd92373fcba76780ad3c9f |
|
BLAKE2b-256 | 87d9315ab41e8103c75958349e616e4c2f54cffcfc210bfb618f8cc746d44877 |
Provenance
The following attestation bundles were made for hydrotoolbox-2.0.12.tar.gz
:
Publisher:
pypi-package.yml
on timcera/hydrotoolbox
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
hydrotoolbox-2.0.12.tar.gz
- Subject digest:
ab2451073aef05d761ef70681d2d7b2072a946e6d9b0624ee18ba69e2d20e299
- Sigstore transparency entry: 204242033
- Sigstore integration time:
- Permalink:
timcera/hydrotoolbox@60cb24636e71878d2ee05d7d53d020047ceb89a1
- Branch / Tag:
refs/heads/main
- Owner: https://github.com/timcera
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi-package.yml@60cb24636e71878d2ee05d7d53d020047ceb89a1
- Trigger Event:
push
- Statement type:
File details
Details for the file hydrotoolbox-2.0.12-py3-none-any.whl
.
File metadata
- Download URL: hydrotoolbox-2.0.12-py3-none-any.whl
- Upload date:
- Size: 256.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a65d15756ae24a4ad165d539c4d561a65ba4239b1620c388dac3368ac9fcac |
|
MD5 | a65078b6d683120e5f1b0ca9755e5e8a |
|
BLAKE2b-256 | 0a86b0193fe52e32df80650a990129907c9213369c24049472c9591b82c71838 |
Provenance
The following attestation bundles were made for hydrotoolbox-2.0.12-py3-none-any.whl
:
Publisher:
pypi-package.yml
on timcera/hydrotoolbox
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
hydrotoolbox-2.0.12-py3-none-any.whl
- Subject digest:
b3a65d15756ae24a4ad165d539c4d561a65ba4239b1620c388dac3368ac9fcac
- Sigstore transparency entry: 204242037
- Sigstore integration time:
- Permalink:
timcera/hydrotoolbox@60cb24636e71878d2ee05d7d53d020047ceb89a1
- Branch / Tag:
refs/heads/main
- Owner: https://github.com/timcera
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi-package.yml@60cb24636e71878d2ee05d7d53d020047ceb89a1
- Trigger Event:
push
- Statement type: