ImportHistDataFun {HyetosMinute}R Documentation

Import historical rainfall depths

Description

The function ImportHistDataFun imports historical daily and/or (sub-)hourly rainfall data from an input .txt file.

Usage

ImportHistDataFun(mode,x,y,z,w,s,timescale)  

Arguments

mode

A positive integer (0 or 1) specifying the mode of operation (operational mode or disaggregation test mode).

x

Character string that specifies the name of the file or connection which the raifall daily data are to be read from. The input files are text files with the ".txt" extension (e.g. file="histdata.txt").

y

Character vector of strings which are to be interpreted as NA values. Default is y="NA".

z

Character string indicating whether dry days (with zero rainfall depths) are contained in the input file. If z="WetDays" the input file contains only the daily rainfall depths of wet days. If z="AllDays" the input file contains the daily rainfall depths of wet and dry days.

w

A logical variable (TRUE/FALSE) that dictates whether the daily values of rainfall depth are contained in the input file. If w=FALSE the imported hourly rainfall depths are aggregated into daily scale. Default is w=TRUE.

s

A positive integer, typically 30 or 31, that specifies the number of days of the month or season of the input data.

timescale

The time scale of input data (number - only for mode "0").

Value

Y

List of matrices and vectors that contains the imported daily and (sub-)hourly rainfall depths and their dates.

Author(s)

Kossieris Panagiotis pankoss@hotmail.com

References

http://itia.ntua.gr/el/docinfo/368/


[Package HyetosMinute version 2.1 Index]