Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions output/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-

#
# setup.py
#
# Author: Michael E. Tryby
# US EPA - ORD/NRMRL
#
#

'''Setup up script for SWMM Output API python extension'''

try:
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
except ImportError:
from distutils.core import setup, Extension
from distutils.command.build_ext import build_ext


setup(
name = "swmm-output",
version = "0.1.0-alpha",

ext_modules = [
Extension("swmm.output._output",
include_dirs = ['swmm/output/'],
libraries = ['swmm-output'],
library_dirs = ['swmm/output/'],
sources = ['swmm/output/output.i'],
swig_opts=['-py3'],
language='C'
)
],
packages = ['swmm.output'],
py_modules = ['output'],
package_data = {'swmm.output':['*swmm-output.dll', '*swmm-output.so']},

install_requires = [
'enum34'
]
)
87 changes: 87 additions & 0 deletions output/swmm/output/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

from swmm.output import output


# Units of Measurement
#
# Parameter Long Name US Customary SI Metric
# AREA_SUBCATCH Subcatchment Area acres ac hectares ha
# AREA_STOR Storage Unit Area square feet sq ft square meters sq m
# AREA_POND Ponding Area square feet sq ft square meters sq m
# CAP_SUC Capillary Suction inches in millimeters mm
# CONC Concentration milligrams/liter mg/L milligrams/liter mg/L
# micrograms/liter ug/L micrograms/liter ug/L
# counts/liter Count/L counts/liter Count/L
# INFIL_DECAY Infiltration Decay Constant 1/hours 1/hrs 1/hours 1/hrs
# POLLUT_DECAY Pollutant Decay Constant 1/days 1/days 1/days 1/days
# DEPRES_STOR Depression Storage inches in millimeters mm
# DEPTH Depth feet ft meters m
# DIAM Diameter feet ft meters m
# DISC_COEFF_ORIF Orifice Discharge Coefficient dimensionless dimless dimensionless dimless
# DISC_COEFF_WEIR Weir Discharge Coefficient CFS/foot^n CFS/ft^n CMS/meter^n CMS/m^n
# ELEV Elevation feet ft meters m
# EVAP_RATE Evaporation inches/day in/day millimeters/day mm/day
# FLOW_RATE Flow cubic feet/sec CFS cubic meter/sec CMS
# gallons/minute GPM liter/sec LPS
# million gallons/day MGD million liter/day MLD
# HEAD Head feet ft meters m
# HYD_CONDUCT Hydraulic Conductivity inches/hour in/hr millimeters/hour mm/hr
# INFIL_RATE Infiltration Rate inches/hour in/hr millimeters/hour mm/hr
# LEN Length feet ft meters m
# MANN_N Manning's n seconds/meter^1/3 sec/m^1/3 seconds/meter^1/3 sec/m^1/3
# POLLUT_BUILDUP Pollutant Buildup mass/length mass/len mass/length mass/len
# mass/acre mass/ac mass/hectare mass/ha
# RAIN_INTENSITY Rainfall Intensity inches/hour in/hr millimeters/hour mm/hr
# RAIN_VOLUME Rainfall Volume inches in millimeters mm
# SLOPE_SUBCATCH Subcatchment Slope percent percent percent percent
# SLOPE_XSEC Cross Section Slope rise/run rise/run rise/run rise/run
# STREET_CLEAN_INT Street Cleaning Interval days days days days
# VOLUME Volume cubic feet cu ft cubic meters cu m
# WIDTH Width feet ft meters m


# Output Metadata
#
# Subcatch Attributes Long Name Parameter Name
# RAINFALL Rainfall RAIN_INTENSITY
# SNOW_DEPTH Snow Depth DEPTH
# EVAP_LOSS Evaporation Loss LOSS_RATE
# INFIL_LOSS Infiltration Loss LOSS_RATE
# RUNOFF_RATE Runoff Rate FLOW_RATE
# GW_OUTFLOW_RATE Groundwater Flow Rate FLOW_RATE
# GW_TABLE_ELEV Groundwater Elevation ELEV
# SOIL_MOISTURE Soil Moisture PERCENT
# POLLUT_CONC Pollutant Concentration CONC

# Node Attributes
# INVERT_DEPTH Invert Depth DEPTH
# HYDRAULIC_HEAD Hydraulic Head HEAD
# PONDED_VOLUME Ponded Volume VOLUME
# LATERAL_INFLOW Lateral Inflow FLOW_RATE
# TOTAL_INFLOW Total Inflow FLOW_RATE
# FLOODING_LOSSES Flooding Loss FLOW_RATE
# POLLUT_CONC Pollutant Concentration CONC

# Link Attributes
# FLOW_RATE Flow Rate FLOW_RATE
# FLOW_DEPTH Flow Depth DEPTH
# FLOW_VELOCITY Flow Velocity VELOCITY
# FLOW_VOLUME Flow Volume VOLUME
# CAPACITY Capacity PERCENT
# POLLUT_CONC Pollutant Concentration CONC

# System Attributes
# AIR_TEMP Temperature TEMP
# RAINFALL Rainfall RAIN_INTENSITY
# SNOW_DEPTH Snow Depth DEPTH
# EVAP_INFIL_LOSS Evap and Infil Losses LOSS_RATE
# RUNOFF_FLOW Runoff Flow Rate FLOW_RATE
# DRY_WEATHER_INFLOW Dry Weather Inflow FLOW_RATE
# GW_INFLOW Groundwater Inflow FLOW_RATE
# RDII_INFLOW RDII Inflow FLOW_RATE
# DIRECT_INFLOW Direct Inflow FLOW_RATE
# TOTAL_LATERAL_INFLOW Total Lateral Inflow FLOW_RATE
# FLOOD_LOSSES Flood Losses FLOW_RATE
# OUTFALL_FLOWS Outfall Flow FLOW_RATE
# VOLUME_STORED Volume Stored VOLUME
# EVAP_RATE Evaporation Rate LOSS_RATE
Loading