read_autocal {SWAT2R}R Documentation

read_autocal

Description

Function for reading the ‘autocalX.out’ resulting after the auto-calibration process in SWAT 2005, and giving as output a data.frame with the columns of the read file.

Usage

read_autocal(file, tstep, out.type="Q", outID=NA, verbose=TRUE)

Arguments

file

the name of the file which the data are to be read from. If it does not contain an _absolute_ path, the file name is _relative_ to the current working directory, 'getwd()'. Tilde-expansion is performed where supported.

tstep

Time step used for the simulation that created the 'autocalX.out' file.
It must be one of the following values: c("daily", "monthly", "annual"),

out.type

Type of results that have to be read. It must be one of the following values:
-) "Q" : only results related to water quantity are read (first 3 columns): c("YEAR", "DAY", "FLOWcms")
-) "Q+Sed" : only results related to water quantity AND sediments are read (first 4 columns): The previously mentioned 3 along with c("SEDCONCmg/kg")
-) "Q+Sed+WQ": all the columns of the 'autocalX.out' are read

outID

Currently not used....

verbose

logical; if TRUE, progress messages are printed

Note

This function has not been exhaustively tested

Author(s)

Mauricio Zambrano-Bigiarini, mzb.devel@gmail.com


[Package SWAT2R version 0.1-11 Index]