extarctBiweekMegteos: Extract the biweekly averages for the subject location and...

Description Usage Arguments Details Value Author(s) Examples

Description

Extract the biweekly averages for the subject location and timeline

Usage

1
extarctBiweekMegteos(dfInput = dfInput, nVar = "precip33", flag = "precip", from_biwk = 1, to_biwk = 10, subgid = "geoid_latlongt")

Arguments

dfInput

Input data frame

nVar

the output name for meteorological parameters: tmmn: daily minimum temperature; tmmx: daily maximum temperature; vs: wind speed; th: wind direction; sph: specific humidity ; srad: surface downwelling shortwave flux in air

flag

the flag name for the file generated by genBiweekMeteos

from_biwk

starting biweek id

to_biwk

ending biweek id

subgid

id

Details

Extract the biweekly averages for the subject location and timeline

Value

Data frame with the nVar variable added

Author(s)

Lianfa Li

Examples

1
2
3
4
5
6
#Extract the value of meteorological parameters based on the output of genBiweekMeteos,
# using the same flag genBiweekMeteos.  Here is the example for biweekly average wind speed.

  data(sc_sample)
  sc_sample$wndsp=extractBiweekMegteos(dfInput=sc_sample,nVar="vs",flag="sc_sample",from_biwk=1,
                               to_biwk=574,subgid="gid")

lspatial/sptemUS documentation built on May 29, 2019, 3:42 a.m.