myRead.table: Read a wasim result file into a table with given length

Description Usage Arguments Value Author(s)

Description

This function reads an output-txt File from WaSiM. It is usually called from other functions. Standard colum names are generated. Date and time are removed from the data object (see read.dates). Finaly, the time series are expanded with NA to fill a certain length (If simulations stoped to early).

Usage

1
myRead.table(name, subcatchments, has_stat, ts.length, na.values)

Arguments

name

File name to read

ts.length

Number of expected data points for the time series. The resulting table is guaranteed to have this length

subcatchments

Number of subcatchments simulated

has_stat

boolean indicating wheter statistics column exists

na.values

String which identifies NA

Value

A table of dimension dim=c(subcatchments+1,ts.length). The last column contains the statistics column if existing.

Author(s)

Dominik Reusser


wasim documentation built on May 1, 2019, 6:50 p.m.