Generate a climate data frame of spatial averages from the file reference object generated by cftdata. Averages represent all grid cells within or touching the area of interest provided to cftdata.

cft_df(file_reference, ncores = 1)

Arguments

file_reference

A file reference data frame generated by `cftdata()`

ncores

Number of cores to use (int)

Value

A tibble of climate data averaged spatially over an area of interest.

Examples

if (FALSE) { file_ref <- cftdata(park = "Acadia National Park", parameters = "pr", years = c(2020, 2021), models = "CCSM4", scenarios = "rcp85") df <- cft_df(file_ref, ncores = parallel::detectCores()) }