Skip to contents

This function injects GMTED (Global Multi-resolution Terrain Elevation Data) into specified locations. It calculates the GMTED values for each location within different radii and returns the merged results.

Usage

inject_gmted(locs, variable, radii, injection, nthreads = 4L)

Arguments

locs

A data frame/sf/SpatVector containing the locations where GMTED variables needs to be calculated

variable

The variable for which GMTED data needs to be calculated.

radii

A vector of radii for which GMTED data needs to be calculated.

injection

A list of additional arguments to be passed to the calc_gmted_direct function.

nthreads

The number of threads to be used for parallel processing. Default is 4.

Value

A data frame containing the merged results of GMTED data for each location within different radii.