vars: Forecast Variables available in each model.

Forecast variablesR 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 x = "" and complete = TRUE to get the complete list of choices with the description field.

service

Character, to choose from 'meteogalicia', 'gfs', 'nam', and 'rap'

day

Date. Services change the variables availability over time.

complete

Logical, if FALSE (default) only the name of the variables is returned. If TRUE the name, label, and description columns are provided.

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)

oscarperpinan/meteoForecast documentation built on Oct. 24, 2023, 10:03 a.m.