Skip to main content

Command line script and Python library to read Storm Water Management Model binary output.

Project description

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

swmmtoolbox - Overview

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

Requirements

Python - of course, version 3.7+.

Installation

The swmmtoolbox is available via pip or conda.

pip

pip install swmmtoolbox

conda

conda install -c conda-forge swmmtoolbox

Usage

Command Line

Just run ‘swmmtoolbox –help’ to get a list of subcommands and options:

usage: swmmtoolbox [-h]
                   {about,catalog,extract,listdetail,listvariables,stdtoswmm5}
                   ...

positional arguments:
  {about,catalog,extract,listdetail,listvariables,stdtoswmm5}
    about               Display version number and system information.
    catalog             List the catalog of objects in output file.
    extract             Get the time series data for a particular object and
                        variable.
    listdetail          List nodes and metadata in output file.
    listvariables       List variables available for each type.
    stdtoswmm5          Take the toolbox standard format and return SWMM5
                        format.

options:
  -h, --help            show this help message and exit

Python API

Simply import swmmtoolbox:

import swmmtoolbox

ntsd = swmmtoolbox.extract("tests/frutal.out", "node,45,Hydraulic_head")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swmmtoolbox-4.0.10.tar.gz (1.4 MB view details)

Uploaded Source

File details

Details for the file swmmtoolbox-4.0.10.tar.gz.

File metadata

  • Download URL: swmmtoolbox-4.0.10.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for swmmtoolbox-4.0.10.tar.gz
Algorithm Hash digest
SHA256 2bcf39659566044481a4911b09a939d28e90bf9bd2c8a63699dfa34552da8dc1
MD5 332f1d5cfdc6f0bfd7c59588071c6def
BLAKE2b-256 c729323701c3389cdb4c7e8e855c73e57566fb9b97e522e49dd3ab02608d3796

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page