GwexObs: Constructor

Description Usage Arguments Value Examples

View source: R/GWex_lib.r

Description

Constructor of class [GwexObs]

Usage

1
GwexObs(variable, date, obs)

Arguments

variable

'Prec' or 'Temp'

date

vector of class 'Date'

obs

matrix nTime x nStations of observations

Value

An object of class [GwexObs]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Format dates corresponding to daily observations of precipitation and temperature
vecDates = seq(from=as.Date("01/01/2005",format="%d/%m/%Y"),
to=as.Date("31/12/2014",format="%d/%m/%Y"),by='day')

# build GwexObs object with precipitation data
myObsPrec = GwexObs(variable='Prec',date=vecDates,obs=dailyPrecipGWEX)

# print GwexObs object
myObsPrec 

# build GwexObs object with temperature data
myObsTemp = GwexObs(variable='Temp',date=vecDates,obs=dailyTemperGWEX)

# print GwexObs object
myObsTemp

GWEX documentation built on Dec. 9, 2019, 5:08 p.m.