hspfbintoolbox


Namehspfbintoolbox JSON
Version 9.0.4 PyPI version JSON
download
home_pageNone
SummaryReads Hydrological Simulation Program - FORTRAN binary output files.
upload_time2024-03-31 19:33:42
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseBSD-3-Clause
keywords hspf binary hydrologic simulation model
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://github.com/timcera/hspfbintoolbox/actions/workflows/python-package.yml/badge.svg
    :alt: Tests
    :target: https://github.com/timcera/hspfbintoolbox/actions/workflows/python-package.yml
    :height: 20

.. image:: https://img.shields.io/coveralls/github/timcera/hspfbintoolbox
    :alt: Test Coverage
    :target: https://coveralls.io/r/timcera/hspfbintoolbox?branch=master
    :height: 20

.. image:: https://img.shields.io/pypi/v/hspfbintoolbox.svg
    :alt: Latest release
    :target: https://pypi.python.org/pypi/hspfbintoolbox/
    :height: 20

.. image:: http://img.shields.io/pypi/l/hspfbintoolbox.svg
    :alt: BSD-3 clause license
    :target: https://pypi.python.org/pypi/hspfbintoolbox/
    :height: 20

.. image:: http://img.shields.io/pypi/dd/hspfbintoolbox.svg
    :alt: hspfbintoolbox downloads
    :target: https://pypi.python.org/pypi/hspfbintoolbox/
    :height: 20

.. image:: https://img.shields.io/pypi/pyversions/hspfbintoolbox
    :alt: PyPI - Python Version
    :target: https://pypi.org/project/hspfbintoolbox/
    :height: 20

Documentation for hspfbintoolbox
================================
The ``hspfbintoolbox`` is a Python script and library of functions to read
Hydrological Simulation Program Fortran (HSPF) binary files and print to
screen.  The time series can then be redirected to file, or piped to other
command line programs like ``tstoolbox``.

Requirements
------------

* python 3.7 or later

* tstoolbox - utilities to process time-series

Installation
------------
pip
~~~
.. code-block:: bash

    pip install hspfbintoolbox

conda
~~~~~
.. code-block:: bash

    conda install -c conda-forge hspfbintoolbox


Usage - Command Line
--------------------
Just run 'hspfbintoolbox --help' to get a list of subcommands:

 catalog
          Prints out a catalog of data sets in the binary file.

 extract
          Prints out data to the screen from a HSPF binary output file.

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 hspfbintoolbox::

    import hspfbintoolbox

    # Then you could call the functions
    ntsd = hspfbintoolbox.extract('tests/test.hbn', 'yearly', ',905,,AGWS')

    # Once you have a PANDAS DataFrame you can use that as input.
    ntsd = tstoolbox.aggregate(statistic='mean', agg_interval='daily', input_ts=ntsd)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "hspfbintoolbox",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "hspf, binary, hydrologic, simulation, model",
    "author": null,
    "author_email": "Tim Cera <tim@cerazone.net>",
    "download_url": "https://files.pythonhosted.org/packages/67/bb/bdec3a4faaf57ec86b0e12aa9fe3973d483331334e5381357443180a9550/hspfbintoolbox-9.0.4.tar.gz",
    "platform": null,
    "description": ".. image:: https://github.com/timcera/hspfbintoolbox/actions/workflows/python-package.yml/badge.svg\n    :alt: Tests\n    :target: https://github.com/timcera/hspfbintoolbox/actions/workflows/python-package.yml\n    :height: 20\n\n.. image:: https://img.shields.io/coveralls/github/timcera/hspfbintoolbox\n    :alt: Test Coverage\n    :target: https://coveralls.io/r/timcera/hspfbintoolbox?branch=master\n    :height: 20\n\n.. image:: https://img.shields.io/pypi/v/hspfbintoolbox.svg\n    :alt: Latest release\n    :target: https://pypi.python.org/pypi/hspfbintoolbox/\n    :height: 20\n\n.. image:: http://img.shields.io/pypi/l/hspfbintoolbox.svg\n    :alt: BSD-3 clause license\n    :target: https://pypi.python.org/pypi/hspfbintoolbox/\n    :height: 20\n\n.. image:: http://img.shields.io/pypi/dd/hspfbintoolbox.svg\n    :alt: hspfbintoolbox downloads\n    :target: https://pypi.python.org/pypi/hspfbintoolbox/\n    :height: 20\n\n.. image:: https://img.shields.io/pypi/pyversions/hspfbintoolbox\n    :alt: PyPI - Python Version\n    :target: https://pypi.org/project/hspfbintoolbox/\n    :height: 20\n\nDocumentation for hspfbintoolbox\n================================\nThe ``hspfbintoolbox`` is a Python script and library of functions to read\nHydrological Simulation Program Fortran (HSPF) binary files and print to\nscreen.  The time series can then be redirected to file, or piped to other\ncommand line programs like ``tstoolbox``.\n\nRequirements\n------------\n\n* python 3.7 or later\n\n* tstoolbox - utilities to process time-series\n\nInstallation\n------------\npip\n~~~\n.. code-block:: bash\n\n    pip install hspfbintoolbox\n\nconda\n~~~~~\n.. code-block:: bash\n\n    conda install -c conda-forge hspfbintoolbox\n\n\nUsage - Command Line\n--------------------\nJust run 'hspfbintoolbox --help' to get a list of subcommands:\n\n catalog\n          Prints out a catalog of data sets in the binary file.\n\n extract\n          Prints out data to the screen from a HSPF binary output file.\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 hspfbintoolbox::\n\n    import hspfbintoolbox\n\n    # Then you could call the functions\n    ntsd = hspfbintoolbox.extract('tests/test.hbn', 'yearly', ',905,,AGWS')\n\n    # Once you have a PANDAS DataFrame you can use that as input.\n    ntsd = tstoolbox.aggregate(statistic='mean', agg_interval='daily', input_ts=ntsd)\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Reads Hydrological Simulation Program - FORTRAN binary output files.",
    "version": "9.0.4",
    "project_urls": {
        "bitbucket": "https://bitbucket.org/timcera/hspfbintoolbox/src/main/",
        "documentation": "https://timcera.bitbucket.io/hspfbintoolbox/docs/index.html#hspfbintoolbox-documentation",
        "github": "https://github.com/timcera/hspfbintoolbox"
    },
    "split_keywords": [
        "hspf",
        " binary",
        " hydrologic",
        " simulation",
        " model"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "690d5963d39a5465110d532447b4b1ba32cddf0ada20cfc2fbd3ea57ae17adf9",
                "md5": "ca0c9b022ae0dba14a6d2f04cf986d47",
                "sha256": "13132120c0b55788461cd34afe042fde1ad50a34a1e3e74542dee09b06aa2e39"
            },
            "downloads": -1,
            "filename": "hspfbintoolbox-9.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ca0c9b022ae0dba14a6d2f04cf986d47",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 9918,
            "upload_time": "2024-03-31T19:33:46",
            "upload_time_iso_8601": "2024-03-31T19:33:46.099460Z",
            "url": "https://files.pythonhosted.org/packages/69/0d/5963d39a5465110d532447b4b1ba32cddf0ada20cfc2fbd3ea57ae17adf9/hspfbintoolbox-9.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67bbbdec3a4faaf57ec86b0e12aa9fe3973d483331334e5381357443180a9550",
                "md5": "cf84c5727b96c2a05ef579453d36e88b",
                "sha256": "75b0c75db0e5e0be44c259fe4a873165d860a24561202a40c6f0e9b9c20638d2"
            },
            "downloads": -1,
            "filename": "hspfbintoolbox-9.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "cf84c5727b96c2a05ef579453d36e88b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 17154344,
            "upload_time": "2024-03-31T19:33:42",
            "upload_time_iso_8601": "2024-03-31T19:33:42.007669Z",
            "url": "https://files.pythonhosted.org/packages/67/bb/bdec3a4faaf57ec86b0e12aa9fe3973d483331334e5381357443180a9550/hspfbintoolbox-9.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-31 19:33:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "timcera",
    "github_project": "hspfbintoolbox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "hspfbintoolbox"
}
        
Elapsed time: 0.23033s