Forecast variables {meteoForecast} | R Documentation |
Forecast Variables available in each model.
Description
The grepVar
retrieves the XML file with the names,
description, and labels of each variable available in the service, and
searches for matches in the description field.
Usage
grepVar(x, service, day = Sys.Date() - 1, complete = FALSE)
Arguments
x |
character string to be matched in the description field of
the set of variables. Try |
service |
Character, to choose from 'meteogalicia', 'gfs', 'nam', and 'rap' |
day |
Date. Services change the variables availability over time. |
complete |
Logical, if |
Value
If complete = TRUE
this function provides a
data.frame
with three columns, name
, label
, and
description
. Use the elements of the name
column to choose
a variable with the argument var
of getRaster
and
getPoint
.
Source
https://mandeo.meteogalicia.es/thredds/catalogos/WRF_2D/catalog.html
https://mandeo.meteogalicia.es/thredds/catalog/gfs_0p25/fmrc/catalog.html
https://www.ncei.noaa.gov/thredds/catalog/model-nam218/catalog.html
https://www.ncei.noaa.gov/thredds/catalog/model-rap130/catalog.html
Examples
## Not run:
## Variables available recently
grepVar('cloud', service = 'gfs', complete = TRUE)
## Variables available some days ago
grepVar('cloud', service = 'nam',
day = Sys.Date() - 10,
complete = TRUE)
## You can get the complete list with x = ""
grepVar("", service = 'meteogalicia', complete = TRUE)
## End(Not run)