Skip to content

fileops/swmmNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

973cb6a · Aug 1, 2023
Jul 20, 2023
Feb 15, 2023
Feb 9, 2023
Feb 9, 2023
Aug 1, 2023
Aug 1, 2023
Feb 9, 2023
Feb 9, 2023
Feb 9, 2023
Feb 9, 2023
Feb 9, 2023
Apr 18, 2023
Feb 9, 2023
Feb 13, 2023
Feb 20, 2023
Feb 9, 2023
Apr 5, 2023
Jul 26, 2023
Jul 26, 2023

Repository files navigation

swmmNode info

swmmNode is a TypeScript package for performing operations on EPA-SWMM files via Node.js or through websites built with swmmReact, swmmVue or swmmLink.

How to link to your project

Use npm to install swmmNode (swmm-node) into your projects:

npm install @fileops/swmm-node

Core functions

Some of the core elements of swmmNode are detailed below:

swmmOut

swmmOut(ArrayBuffer): Creates an interactive class instance for .out files.

swmmDat

swmmDat(string): Creates an interactive class instance for .dat files.

getHeader

Returns the header for the file.

findStorms

Searches the .dat file for storm patterns, returns results in Unix-Timestamp format.

findStormsPretty

Searches the .dat file for storm patterns, returns results in human-readable format (MM/DD/YYYY hh:mm:ss)

subGage

Gets the data for just one gage from a .dat file.

mergeGages

Merges gage info from another .dat file or object into the current .dat object.

subRange

Gets the data for a specific date range from the .dat object/file

stringify

Translates the current .dat file into a string for writing into a new .dat file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages