wf_request: ECMWF data request and download

Description Usage Arguments Value See Also Examples

View source: R/wf_request.R

Description

Stage a data request, and optionally download the data to disk. Alternatively you can only stage requests, logging the request URLs to submit download queries later on using wf_transfer. The function only allows NetCDF downloads, and will override calls for grib data.

Usage

1
2
3
4
5
6
wf_request(email, path = tempdir(), time_out = 3600,
  transfer = FALSE, request = list(stream = "oper", levtype = "sfc",
  param = "167.128/228.128", dataset = "interim", step = "0", grid =
  "0.75/0.75", time = "00", date = "2014-07-01/to/2014-07-02", type = "an",
  class = "ei", area = "50/10/51/11", format = "netcdf", target =
  "tmp.nc"), verbose = TRUE)

Arguments

email

email address used to sign up for the ECMWF data service and used to retrieve the token set by wf_set_key

path

path were to store the downloaded data

time_out

how long to wait on a download to start (default = 3600)

transfer

logical, download data TRUE or FALSE (default = FALSE)

request

nested list with query parameters following the layout as specified on the ECMWF API page

verbose

show feedback on processing

Value

a download query staging url or a netCDF of data on disk

See Also

wf_set_key wf_transfer

Examples

1
2
3
4
5
# set key
wf_set_key(email = "test@mail.com", key = "123")

# get key
wf_get_key(email = "test@mail.com")

lhmet-forks/ecmwfr documentation built on April 21, 2020, 1:24 a.m.