.. image:: https://github.com/timcera/hydrotoolbox/actions/workflows/pypi-package.yml/badge.svg
:alt: Tests
:target: https://github.com/timcera/hydrotoolbox/actions/workflows/pypi-package.yml
:height: 20
.. image:: https://img.shields.io/coveralls/github/timcera/hydrotoolbox
:alt: Test Coverage
:target: https://coveralls.io/r/timcera/hydrotoolbox?branch=master
:height: 20
.. image:: https://img.shields.io/pypi/v/hydrotoolbox.svg
:alt: Latest release
:target: https://pypi.python.org/pypi/hydrotoolbox/
:height: 20
.. image:: https://img.shields.io/pypi/l/hydrotoolbox.svg
:alt: BSD-3 clause license
:target: https://pypi.python.org/pypi/hydrotoolbox/
:height: 20
.. image:: https://img.shields.io/pypi/dd/hydrotoolbox.svg
:alt: hydrotoolbox downloads
:target: https://pypi.python.org/pypi/hydrotoolbox/
:height: 20
.. image:: https://img.shields.io/pypi/pyversions/hydrotoolbox
:alt: PyPI - Python Version
:target: https://pypi.org/project/hydrotoolbox/
:height: 20
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
~~~
.. code-block:: bash
pip install hydrotoolbox
conda
~~~~~
.. code-block:: bash
conda install -c conda-forge hydrotoolbox
Usage - Command Line
--------------------
Just run 'hydrotoolbox --help' to get a list of subcommands::
usage: hydrotoolbox [-h] [-v] {baseflow_sep,recession,about} ...
positional arguments:
{baseflow_sep,recession,about}
baseflow_sep baseflow_sep subcommand
recession Recession coefficient.
about Display version number and system information.
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
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.
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 hydrotoolbox::
from hydrotoolbox import hydrotoolbox
# Then you could call the functions
ntsd = hydrotoolbox.baseflow_sep(method='broughton', input_ts='tests/test_fill_01.csv')
Raw data
{
"_id": null,
"home_page": null,
"name": "hydrotoolbox",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "time-series, cli-app, hydrology, baseflow, hydrograph-recession, hydrographic",
"author": null,
"author_email": "Tim Cera <tim@cerazone.net>",
"download_url": "https://files.pythonhosted.org/packages/18/d2/ca1cf38634e39e40cef5c04488b35750ac83b1bf1aa8a0a3343da7cadfcf/hydrotoolbox-2.0.11.tar.gz",
"platform": null,
"description": ".. image:: https://github.com/timcera/hydrotoolbox/actions/workflows/pypi-package.yml/badge.svg\n :alt: Tests\n :target: https://github.com/timcera/hydrotoolbox/actions/workflows/pypi-package.yml\n :height: 20\n\n.. image:: https://img.shields.io/coveralls/github/timcera/hydrotoolbox\n :alt: Test Coverage\n :target: https://coveralls.io/r/timcera/hydrotoolbox?branch=master\n :height: 20\n\n.. image:: https://img.shields.io/pypi/v/hydrotoolbox.svg\n :alt: Latest release\n :target: https://pypi.python.org/pypi/hydrotoolbox/\n :height: 20\n\n.. image:: https://img.shields.io/pypi/l/hydrotoolbox.svg\n :alt: BSD-3 clause license\n :target: https://pypi.python.org/pypi/hydrotoolbox/\n :height: 20\n\n.. image:: https://img.shields.io/pypi/dd/hydrotoolbox.svg\n :alt: hydrotoolbox downloads\n :target: https://pypi.python.org/pypi/hydrotoolbox/\n :height: 20\n\n.. image:: https://img.shields.io/pypi/pyversions/hydrotoolbox\n :alt: PyPI - Python Version\n :target: https://pypi.org/project/hydrotoolbox/\n :height: 20\n\nhydrotoolbox - Quick Guide\n==========================\nThe hydrotoolbox is a Python script for hydrologic calculations and analysis\nor by function calls within Python. Uses pandas (http://pandas.pydata.org/)\nor numpy (http://numpy.scipy.org) for any heavy lifting.\n\nRequirements\n------------\n* python 3.7 or higher\n\nInstallation\n------------\npip\n~~~\n.. code-block:: bash\n\n pip install hydrotoolbox\n\nconda\n~~~~~\n.. code-block:: bash\n\n conda install -c conda-forge hydrotoolbox\n\n\nUsage - Command Line\n--------------------\nJust run 'hydrotoolbox --help' to get a list of subcommands::\n\n\n usage: hydrotoolbox [-h] [-v] {baseflow_sep,recession,about} ...\n\n positional arguments:\n {baseflow_sep,recession,about}\n baseflow_sep baseflow_sep subcommand\n recession Recession coefficient.\n about Display version number and system information.\n\n optional arguments:\n -h, --help show this help message and exit\n -v, --version show program's version number and exit\n\nThe default for all of the subcommands is to accept data from stdin (typically\na pipe). If a subcommand accepts an input file for an argument, you can use\n\"--input_ts=input_file_name.csv\", or to explicitly specify from stdin (the\ndefault) \"--input_ts='-'\".\n\nFor the subcommands that output data it is printed to the screen and you can\nthen redirect to a file.\n\nUsage - API\n-----------\nYou can use all of the command line subcommands as functions. The function\nsignature is identical to the command line subcommands. The return is always\na PANDAS DataFrame. Input can be a CSV or TAB separated file, or a PANDAS\nDataFrame and is supplied to the function via the 'input_ts' keyword.\n\nSimply import hydrotoolbox::\n\n from hydrotoolbox import hydrotoolbox\n\n # Then you could call the functions\n ntsd = hydrotoolbox.baseflow_sep(method='broughton', input_ts='tests/test_fill_01.csv')\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Command line script and Python library for analysis of flow time-series.",
"version": "2.0.11",
"project_urls": {
"bitbucket": "https://bitbucket.org/timcera/hydrotoolbox/src/main/",
"documentation": "https://timcera.bitbucket.io/hydrotoolbox/docs/index.html#hydrotoolbox-documentation",
"github": "https://github.com/timcera/hydrotoolbox"
},
"split_keywords": [
"time-series",
" cli-app",
" hydrology",
" baseflow",
" hydrograph-recession",
" hydrographic"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f1b0209c3fca1c629d9781b73319bcd09a66fcf0374221956431f0da9238f970",
"md5": "a54abbb565912419964ace569154f33d",
"sha256": "50ccc8847caeb51ff3ce0549552bb6495f0f08eebffcd3595a4fe58e967ab449"
},
"downloads": -1,
"filename": "hydrotoolbox-2.0.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a54abbb565912419964ace569154f33d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 256171,
"upload_time": "2024-06-24T06:07:13",
"upload_time_iso_8601": "2024-06-24T06:07:13.850255Z",
"url": "https://files.pythonhosted.org/packages/f1/b0/209c3fca1c629d9781b73319bcd09a66fcf0374221956431f0da9238f970/hydrotoolbox-2.0.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "18d2ca1cf38634e39e40cef5c04488b35750ac83b1bf1aa8a0a3343da7cadfcf",
"md5": "d07b0bd086a81cd8fecf9a3b6c426b90",
"sha256": "05d2abb6e6ee412d73c3248ae08e58a9db7d26790a123404be911ce9f4f9a3a7"
},
"downloads": -1,
"filename": "hydrotoolbox-2.0.11.tar.gz",
"has_sig": false,
"md5_digest": "d07b0bd086a81cd8fecf9a3b6c426b90",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5761400,
"upload_time": "2024-06-24T06:07:16",
"upload_time_iso_8601": "2024-06-24T06:07:16.037544Z",
"url": "https://files.pythonhosted.org/packages/18/d2/ca1cf38634e39e40cef5c04488b35750ac83b1bf1aa8a0a3343da7cadfcf/hydrotoolbox-2.0.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-24 06:07:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "timcera",
"github_project": "hydrotoolbox",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "hydrotoolbox"
}