myRead.table: Read a wasim result file into a table with given length
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
myRead.table(name, subcatchments, has_stat, ts.length, na.values)
Arguments
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.