download.NARR_site: Download NARR time series for a single site

Description Usage Arguments Author(s) Examples

View source: R/download-narr.R

Description

Download NARR time series for a single site

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
download.NARR_site(
  outfolder,
  start_date,
  end_date,
  lat.in,
  lon.in,
  overwrite = FALSE,
  verbose = FALSE,
  progress = TRUE,
  narr_cache_dir = file.path(outfolder, "narr_cache"),
  overwrite_cache = FALSE,
  parallel = TRUE,
  ncores = parallel::detectCores(),
  silent = TRUE,
  ...
)

Arguments

outfolder

Target directory for storing output

start_date

Start date for met data

end_date

End date for met data

lat.in

Site latitude coordinate

lon.in

Site longitude coordinate

overwrite

Overwrite existing files? Default=FALSE

verbose

Turn on verbose output? Default=FALSE

progress

Print a progress bar as data are being downloaded? Default = TRUE

narr_cache_dir

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

overwrite_cache

Delete existing cache? Default = FALSE

parallel

Download in parallel? Default = TRUE

ncores

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

silent

Silence error messages?

...

Additional arguments (not used)

Author(s)

Alexey Shiklomanov

Examples

1
2
3
4
## Not run: 
download.NARR_site(tempdir(), "2001-01-01", "2001-01-12", 43.372, -89.907)

## End(Not run)

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