vars: Forecast Variables available in each model.

Description Usage Arguments Value Source Examples

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

1
grepVar(x, service, day = Sys.Date() - 15, 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

MeteoGalicia: http://www.meteogalicia.es/web/modelos/threddsIndex.action

GFS: https://www.ncei.noaa.gov/thredds/catalog/gfs-004-files/catalog.html

NAM: http://www.ncei.noaa.gov/thredds/catalog/nam218/catalog.html

RAP: http://www.ncei.noaa.gov/thredds/catalog/rap130/catalog.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
## Variables available recently
grepVar('cloud', service = 'gfs', complete = TRUE)

## Variables available some time ago
grepVar('cloud', service = 'gfs',
        day = Sys.Date() - 500,
        complete = TRUE)

## You can get the complete list with x = ""
grepVar("", service = 'meteogalicia', complete = TRUE)

## End(Not run)

oscarperpinan/meteoForecast documentation built on Nov. 23, 2018, 6:50 a.m.