paVector: paVector

Description Usage Arguments Value Examples

Description

Creates paVector. This is the index of which years are in the proper period of record.

Usage

1
paVector(year, paStart, paLong, vectorYear)

Arguments

year

integer year to look for. If the period of analysis is a water year (setPA(paStart = 10, paLong = 12)), the year corresponds to the calendar year of that water year for Jan-Sept. If the period of record crosses a calendar year (setPA(paStart=10, paLong=3)), the year indicates the year at the ending month.

paStart

integer starting month for period of analysis

paLong

integer length of period of analysis

vectorYear

numeric vector of decimal years

Value

surfaces matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
year <- 2000
paStart <- 10
paLong <- 12
vectorYear <- c(seq(1999,2001,0.1))
paIndexWaterYear <- paVector(year, paStart, paLong, vectorYear)
requestedYears <- vectorYear[paIndexWaterYear]
paStart <- 11
paLong <- 3
paIndexWinter <- paVector(year, paStart, paLong, vectorYear)
requestedWinterYears <- vectorYear[paIndexWinter]
paStart <- 6
paLong <- 3
paIndexSummer <- paVector(year, paStart, paLong, vectorYear)
requestedSummerYears <- vectorYear[paIndexSummer]
paStart <- 10
paLong <- 3
paIndexLate <- paVector(year, paStart, paLong, vectorYear)
endOfYear <- vectorYear[paIndexLate]

fawda123/EGRETci documentation built on May 16, 2019, 10:57 a.m.