Forecast variables | R Documentation |
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.
grepVar(x, service, day = Sys.Date() - 1, complete = FALSE)
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 |
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
.
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
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.