covGradAtLocs: Gradient of covariate field

View source: R/gradientInterpolation.R

covGradAtLocsR Documentation

Gradient of covariate field

Description

Gradient of covariate field

Usage

covGradAtLocs(locs, cov_list = NULL, grad_fun = NULL)

Arguments

locs

Matrix of locations where the gradient should be evaluated

cov_list

List of J (number of covariates) "raster like" elements. A raster like element is a 3 elements list with named elements 1) "x" a vector of increasing x locations (at which the covariate is sampled) 2) "y" a vector of increasing y locations (at which the covariate is sampled) 3) "z" a size(x)*size(y) matrix giving covariate values at location (x, y)

grad_fun

Optional list of functions taking a 2d vector and returning a two 2d vector for the gradient

Value

Three-dimensional array of gradients of covariate fields. The rows index time, the columns are the dimensions (x and y), and the layers index the covariates.


papayoun/Rhabit documentation built on July 19, 2023, 8:04 p.m.