extractForecast: Extract NWP variables forecast with variability indexes

Description Usage Arguments Details Value Author(s) See Also

Description

Build a time series with one or more Numerical Weather Prediction variables from a specified remote source for a time period at a defined location. The variable is quantified with the value at the location, a spatial interpolation using nearby points, three spatial variability indexes, and one time variability index.

Usage

1
2
3
4
5
6
7
8
extractForecast(point, seqDays, vrbl,
                src='meteogalicia',
                remote=TRUE, dataDir='.',
                sun = FALSE, ...)

predVarsLocal(point, seqDays, vrbls,
              mc.cores = 1,
              sun = TRUE, ...)

Arguments

point

point represented by a SpatialPoints* object, or a numeric vector of length 2 (longitude, latitude), in degrees.

seqDays

Sequence of days defined by a Date object, or a character that can be coerced to a Date.

vrbl, vrbls

Character. The name(s) of the variable(s) to retrieve. Inspect the help page of grepVar to know what variables are available in each service.

sun

Logical, if TRUE sun geometry is computed (solar altitude, azimuth, and extraterrestrial irradiance) and included as additional variables.

src

Character, which service to use, 'meteogalicia', 'gfs', 'openmeteo', 'nam' or 'rap'. Read the help page of getRaster for details.

remote

Logical. If TRUE (default) data is downloaded from the remote service. If FALSE the RasterBrick is produced with the files available in the local folder.

dataDir

Character, path of the folder where files are stored (if remote = 'FALSE')

mc.cores

The number of cores to use, i.e. at most how many child processes will be run simultaneously. Parallelization requires at least two cores. It relies on forking and hence is not available on Windows.

...

Additional arguments for getRasterDays

Details

predVarsLocal is a wrapper around extractForecast using mclapply for building a time series for each variable included in vrbls.

Value

A time series (using the zoo class) with a column for the value at the location, the IDW interpolation, the spatial variability indexes obtained with terrainIndex, and the time variability index.

Author(s)

Marcelo Pinho Almeida and Oscar Perpiñán Lamigueiro

See Also

terrainIndex, getRasterDays, getPointRuns, calcSol


iesiee/PVF documentation built on May 9, 2019, 1:09 a.m.