downscale: Downscale monthly climate data to 30 arcseconds using...

Description Usage Arguments Value References

View source: R/downscale.R

Description

Currently, CRU TS 4.01 is supported out of the box; for E-OBS > 18e, NetCDF files with monthly resolution have to be produced first, e.g. using CDO commands.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
downscale(
  x,
  nc_path,
  wc_dir,
  varname,
  mode = "auto",
  id = "id",
  parallel = TRUE,
  use_chelsa = FALSE,
  wc_bilinear = FALSE,
  verbose = TRUE
)

Arguments

x

a data.frame with at least id, lon, and lat

nc_path

absolute path to the NetCDF file with monthly climate data

wc_dir

absolute path to the WorldClim v2.0 TIF files for the respective climate parameter

varname

the name of the climate variable in the NetCDF file

mode

either "auto", or one of "temp" or "prec"

id

character string indicating name of column in x that holds unique location ids

parallel

if TRUE (default), some parts of the code are run in parallel for speed gain

use_chelsa

if TRUE, use CHELSA data instead of WorldClim for downscaling

wc_bilinear

if TRUE, bilinearly interpolate worldclim data as well

Value

a tidy data.frame with id, year, month, and the extracted climate variable

References

Mosier, T. M., Hill, D. F., & Sharp, K. V. (2014). 30-Arcsecond monthly climate surfaces with global land coverage. International Journal of Climatology, 34(7), 2175–2188. https://doi.org/10.1002/joc.3829


cszang/clex documentation built on Sept. 27, 2020, 2:42 p.m.