get_NARR_thredds: Retrieve NARR data using thredds

Description Usage Arguments Value Author(s) Examples

View source: R/download-narr.R

Description

Retrieve NARR data using thredds

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
get_NARR_thredds(
  start_date,
  end_date,
  lat.in,
  lon.in,
  progress = TRUE,
  narr_cache_dir = "narr_cache",
  overwrite_cache = FALSE,
  drop_outside = TRUE,
  parallel = TRUE,
  ncores = 1,
  silent = FALSE
)

Arguments

start_date

Start date for meteorology

end_date

End date for meteorology

lat.in

Latitude coordinate

lon.in

Longitude coordinate

progress

Whether or not to show a progress bar (default = TRUE). Requires the progress package to be installed.

narr_cache_dir

Directory where to cache downloaded data. Default is <outfolder>/narr_cache.

overwrite_cache

Delete existing cache? Default = FALSE

drop_outside

Whether or not to drop dates outside of start_date to end_date range (default = TRUE).

parallel

Download in parallel? Default = TRUE

ncores

Number of cores for parallel download. Default is parallel::detectCores()

silent

Silence error messages?

Value

tibble containing time series of NARR data for the given site

Author(s)

Alexey Shiklomanov

Examples

1
2
3
4
## Not run: 
dat <- get_NARR_thredds("2008-01-01", "2008-01-15", 43.3724, -89.9071)

## End(Not run)

FoRTExperiment/ed4forte documentation built on March 21, 2020, 6:54 p.m.