climr::downscale
getClimate.Rd
Prepares coordinates and obtains climate normals
using climr::downscale
getClimate(
coords,
byCombo = FALSE,
outFormat = "data.table",
filename = tempfile(fileext = ".rds"),
...
)
a data.table
, or spatial points (SpatVector
or sf
)
with point coordinates ("lon" = longitude, "lat" = latitude), elevation ("elev") and point IDs ("id").
logical. If TRUE, climr::downscale
is iterated by
combinations of any arguments passed to downscale
via ...
(e.g., vars
, gcms
, ssps
).
character. Should outputs be in the form of a
data.table
("data.table"), list of data.tables
("list") or
written directly to disk ("disk")? If byCombo == FALSE
, only
"data.table" and "disk" will work.
character. Passed to saveRDS(..., file)
if
outFormat == "disk"
. Defaults to tempfile(fileext = ".csv")
.
further arguments passed to climr::downscale()
.
climate normals as a data.table
If bgcs
is provided, the BGC field will be appended to
the output data.table
.