interpolate: Interpolate (or just extract) monthly climate data

Description Usage Arguments Value

View source: R/interpolate.R

Description

Interpolate (or just extract) monthly climate data

Usage

1
interpolate(x, nc_path, varname, id = "id", ...)

Arguments

x

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

nc_path

absolute path to the NetCDF file with monthly climate data

varname

the name of the climate variable in the NetCDF file

id

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

...

additional arguments passed to raster::extract()

Value

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


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