Download and convert to CF CRUNCEP single grid point from MSTIMIP server using OPENDAP interface
Usage
download.CRUNCEP(
outfolder,
start_date,
end_date,
lat.in,
lon.in,
overwrite = FALSE,
verbose = FALSE,
maxErrors = 10,
sleep = 2,
method = "ncss",
...
)Arguments
- outfolder
Directory where results should be written
- start_date, end_date
Range of years to retrieve. Format is YYYY-MM-DD, but only the year portion is used and the resulting files always contain a full year of data.
- lat.in
site latitude in decimal degrees
- lon.in
site longitude in decimal degrees
- overwrite
logical. Download a fresh version even if a local file with the same name already exists?
- verbose
logical. Passed on to
ncvar_defandnc_createto control printing of debug info- maxErrors
Maximum times to re-try following an error accessing netCDF data through THREDDS
- sleep
Wait time between attempts following a THREDDS or other error
- method
(string) Data access method. `opendap` (default) attempts to directly access files via OpenDAP. `ncss` (NetCDF subset) subsets the file on the server, downloads the subsetted file to `tempfile` and then reads it locally. `opendap` is faster when it works, but often fails because of server issues. `ncss` can be much slower, but is more reliable.
- ...
Other arguments, currently ignored