Giter Site home page Giter Site logo

timcera / hspf_utils Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 8.81 MB

Utilities for water balances and mapping of results from the Hydrological Simulation Program-FORTRAN (HSPF)

License: Other

Python 100.00%
hydrological-modelling mapping water-balance

hspf_utils's Introduction

Tests Test Coverage Latest release BSD-3 clause license hspf_utils downloads PyPI - Python Version

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")

hspf_utils's People

Contributors

deepsourcebot avatar timcera avatar timothycera-noaa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tomjobes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.