interpolation_wrapper: Wrapper function around interpolate_variable()

View source: R/interpolation_wrapper.R

interpolation_wrapperR Documentation

Wrapper function around interpolate_variable()

Description

This function interpolates gear temperature to calculate cold pool area using all candidate interpolation methods and outputs rasters of temperature and estimates of Cold Pool Area. Output includes the best

Usage

interpolation_wrapper(
  temp_data_path,
  proj_crs,
  cell_resolution,
  select_years = NULL,
  interp_variable,
  select_region = "sebs",
  methods = NULL
)

Arguments

temp_data_path

Filepath to temperature csv file generated by get_data()

proj_crs

CRS string to use for interpolation as a character vector (CRS should have units of meters)

cell_resolution

Interpolation grid cell dimension in meters.

select_years

Optional. Select years to use for interpolation. Default NULL uses all years.

select_region

Region for interpolation as a character string. Options = "ebs", "sebs", "nbs"

methods

Optional character vector of methods to pass to interpolate_variable(). Valid choices: "NN", "IDW", "IDW4", "Exp", "Sph", "Bes", "Gau", "Cir", "Mat", "Ste", "Tps". If NULL, uses defaults.

Value

Data frame of estimated cold pool area from multiple candidate interpolation methods.


afsc-gap-products/coldpool documentation built on Sept. 14, 2024, 7:40 p.m.