Skip to contents

Helper function for kriging wingen moving window; checks raster resolution and runs kriging

Usage

krig_helper(
  map,
  grd = NULL,
  index = 1,
  agg_grd = NULL,
  disagg_grd = NULL,
  agg_r = NULL,
  disagg_r = NULL
)

Arguments

map

RasterLayer or RasterStack produced by window_gd()

grd

object to create grid for kriging; inherits from krig_gd (defaults to NULL)

index

integer indices of layers in raster stack to krige; inherits from krig_gd (defaults to 1)

agg_grd

factor to use for aggregation of grd; inherits from krig_gd (defaults to NULL)

disagg_grd

factor to use for disaggregation of grd; inherits from krig_gd (defaults to NULL)

agg_r

factor to use for aggregation of r; inherits from krig_gd (defaults to NULL)

disagg_r

factor to use for disaggregation of r; inherits from krig_gd (defaults to NULL)

Value

kriged map

See also

Other wingen functions: krig_agg_helper(), wingen_do_everything()