Check.Krig: Sanity checks before Kriging commences

View source: R/Checks.R

Check.KrigR Documentation

Sanity checks before Kriging commences

Description

This function is called upon in the Kriging function and performs sanity checks for some of the most common error sources in kriging thereby attempting to return more sensible error messages to the user than what is returned by default.

Usage

Check.Krig(Data, CovariatesCoarse, CovariatesFine, KrigingEquation)

Arguments

Data

A SpatRaster object containing the data to be kriged.

CovariatesCoarse

A SpatRaster object containing covariates for kriging at training resolution.

CovariatesFine

A SPatRaster object containing covariates for kriging at target resolution.

KrigingEquation

A formula object obtained from a character vector via as.formula() specifying the covariates to be used in kriging. The covariates used have to be present and named as layers in CovariatesCoarse and CovariatesFine.

Value

A list containing a potentially altered KrigingEquation if needed as well as an identifier for data layers which need to be skipped when kriging due to a variety of reasons.

See Also

Kriging, KrigingCovariateSetup.


ErikKusch/KrigR documentation built on Feb. 17, 2025, 2:09 p.m.