read_out: Read time series data from SWMM's .out file

Description Usage Arguments Details Value See Also Examples

View source: R/read_out.R

Description

Reads the binary output ('.out') generated by the stormwater management model 'SWMM' and creates a list of xts-objects.

Usage

1
read_out(file = "", iType = NULL, object_name = NULL, vIndex = NULL)

Arguments

file

The file to be read.

iType

Sets the result type: 0 for Subcatchments, 1 for nodes, 2 for links, 3 for system variables. Leave empty for retrieving elements available.

object_name

Sets the objects of which time series data is returned. Leave empty for retrieving elements available.

vIndex

Sets the variables to be read (s. Details). Leave empty for retrieving elements available.

Details

vIndex depends on the result type. Choices are...

for each subcatchment variable:

for each node variable:

for each link variable:

for each system-wide variable:

Value

A list of xts-objects.

See Also

xts.

Examples

1
2
3
4
5
 
## Not run: 
xts_list_of_results <- read_out("model.out")

## End(Not run) 

swmmr documentation built on March 2, 2020, 5:09 p.m.