Skip to content

Commit

Permalink
docs: removed all references to dump
Browse files Browse the repository at this point in the history
  • Loading branch information
timcera committed Jul 23, 2022
1 parent 66636d0 commit a43afd1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 21 deletions.
19 changes: 5 additions & 14 deletions README.rst
Expand Up @@ -37,29 +37,20 @@ Requirements

Installation
------------
Should be as easy as running ``pip install hspfbintoolbox`` or ``easy_install
hspfbintoolbox`` at any command line. Not sure on Windows whether this will
bring in pandas but as mentioned above, if you start with Python(x,y) then
you won't have a problem.
Should be as easy as running ``pip install hspfbintoolbox`` at any command
line. Not sure on Windows whether this will bring in pandas but as mentioned
above, if you start with Python(x,y) then you won't have a problem.

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

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

dump
Prints out ALL data from a HSPF binary output file.

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

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 "--infile=filename", or to explicitly specify from stdin use
"--infile='-'" .

For the subcommands that output data it is printed to the screen and you can
then redirect to a file.

Expand All @@ -75,7 +66,7 @@ Simply import hspfbintoolbox::
import hspfbintoolbox

# Then you could call the functions
ntsd = hspfbintoolbox.dump('tests/test.hbn')
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)
1 change: 0 additions & 1 deletion docs/function_summary.rst
Expand Up @@ -8,5 +8,4 @@ Python API Function Summary

hspfbintoolbox.hspfbintoolbox.about
hspfbintoolbox.hspfbintoolbox.catalog
hspfbintoolbox.hspfbintoolbox.dump
hspfbintoolbox.hspfbintoolbox.extract
2 changes: 1 addition & 1 deletion docs/index.rst
Expand Up @@ -6,7 +6,7 @@ hspfbintoolbox
==============

This is the home page for `hspfbintoolbox`. The `hspfbintoolbox` is a
command line program and Python library functions to dump data out of
command line program and Python library functions to extract data out of
Hydrological Simulation Program - FORTRAN (HSPF) binary output files.

Should work with Python 3.6+.
Expand Down
4 changes: 0 additions & 4 deletions docs/readme.rst
Expand Up @@ -7,10 +7,6 @@ catalog
~~~~~~~
.. program-output:: hspfbintoolbox catalog --help

dump
~~~~
.. program-output:: hspfbintoolbox dump --help

extract
~~~~~~~
.. program-output:: hspfbintoolbox extract --help
2 changes: 1 addition & 1 deletion src/hspfbintoolbox/hspfbintoolbox.py
Expand Up @@ -63,7 +63,7 @@ def tupleSearch(findme, haystack):

def _get_data(binfilename, interval="daily", labels=None, catalog_only=True):
"""Underlying function to read from the binary file. Used by
'extract', 'catalog', and 'dump'.
'extract', 'catalog'.
"""
if labels is None:
labels = [",,,"]
Expand Down

0 comments on commit a43afd1

Please sign in to comment.