Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install swmmtoolbox

How to install swmmtoolbox

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install swmmtoolbox
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1
0.2.2Never BuiltWhy not?
0.1 Available View build log
Windows (64-bit)
0.1
0.2.2Never BuiltWhy not?
0.1 Available View build log
Mac OS X (10.5+)
0.1
0.2.2Never BuiltWhy not?
0.1 Available View build log
Linux (32-bit)
0.2
0.2.2Never BuiltWhy not?
0.2 Available View build log
0.1 Available View build log
Linux (64-bit)
0.2.2 Available View build log
0.1 Available View build log
 
Author
License
GPL2
Imports
Lastest release
version 0.2.2 on Jan 9th, 2014

SWMMTOOLBOX

The swmmtoolbox is a Python script to read the Storm Water Management Model (SWMM) version 5 binary output files.

Requirements

Python - of course

The 'baker' library which should have been installed as a requirement.

Installation

Should be easy as pip install swmmtoolbox OR easy_install swmmtoolbox depending on your choice of Python package managers.

Running

Just run 'swmmtoolbox' from a command line to get a list of subcomamnds:

Usage: /sjr/beodata/local/python_linux/bin/swmmtoolbox COMMAND <options>

Available commands:

 getdata        Get the time series data for a particular object and
                variable
 list           List objects in output file
 listdetail     List nodes and metadata in output file
 listvariables  List variables available for each type

Use "/sjr/beodata/local/python_linux/bin/swmmtoolbox <command> --help" for individual command help.

You can follow up with help for each subcommand to get a list of required and optional arguments.

For example:

'swmmtoolbox getdata --help'

   Usage: /sjr/beodata/local/python_linux/bin/swmmtoolbox getdata <filename> [<labels>...]

   Get the time series data for a particular object and variable

   Required Arguments:

     filename   Filename of SWMM output file.

   Variable arguments:

      *labels   The remaining arguments uniquely identify a time-series in the
                binary file. The format is 'TYPE,NAME,VARINDEX'. For example:
                'node,C64,1 node,C63,1 ...' TYPE and NAME can be retrieved with
                'swmmtoolbox list filename.out' VARINDEX can be retrieved with
                'swmmtoolbox listvariables filename.out'

   (specifying a double hyphen (--) in the argument list means all
   subsequent arguments are treated as bare arguments, not options)

Author

Tim Cera, P.E.

tim at cerazone dot net

Please send me a note if you find this useful, found a bug, submit a patch, ...etc.

News

0.2

Release date: 2012-12-19

  • Moved to PANDAS

  • Uses tsutils to print in tabular format when multiple series are requested.

  • The 'getdata' command now accepts variable number of arguments specifying

    multiple time series.

0.1

Release date: 2011-10-17

  • First released version.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.