Command line script and Python library to develop water balance from HSPF models
Project description
hspf_utils - Quick Guide
The hspf_utils is a command line script and Python library of utilities to work with the Hydrological Simulation Program - FORTRAN (HSPF). Uses pandas (http://pandas.pydata.org/) or numpy (http://numpy.scipy.org) for any heavy lifting.
Requirements
hspfbintoolbox - Utility to extract time-series from HSFP binary output files; collected and installed by ‘pip’ or ‘easy_install’ command.
Installation
Should be as easy as running pip install hspf_utils or conda install -c conda-forge hspf_utils at any command line.
Usage - Command Line
Just run ‘hspf_utils –help’ to get a list of subcommands:
usage: hspf_utils [-h] {about,detailed,summary,mapping,parameters} ... positional arguments: {about,detailed,summary,mapping,parameters} about Display version number and system information. detailed Develops a detailed water balance. summary Develops a summary water balance. mapping Develops a csv file appropriate for joining to a GIS layer. parameters Develops a table of parameter values. optional arguments: -h, --help show this help message and exit
For the subcommands that output data it is printed to the screen and you can then redirect to a file.
Usage - API
You can use all of the command line subcommands as functions. The function signature is identical to the command line subcommands. The return is always 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 hspf_utils:
import hspf_utils # Then you could call the functions ntsd = hspf_utils.summary("test.hbn", uci="test.uci")
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 Distribution
Hashes for hspf_utils-6.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68cbbdcfdf896aef361d9f34ce3dba77c5e93d8cdf95eb223484d444d7d0e172 |
|
MD5 | cf3bc6fefb5aba1edfa2c23d1c4de97a |
|
BLAKE2b-256 | 72eeab9f4782be03ea564e77abea845895e5919d2677dcd2f532a9e873c907c3 |