setMaximumZfromConstant {mkde} | R Documentation |
Initialize maximum allowable z-axis coordinates to a constant value.
Description
Set the upper bounds in the z-dimension for each location in the x and y dimensions to a constant value.
Usage
setMaximumZfromConstant(mkde.obj, val)
Arguments
mkde.obj |
2D or 3D MKDE object created with
|
val |
The value at which the upper bound should be set for all locations in the x and y dimensions. |
Details
Obviously, the upper bound must be greater than the lower bound.
Value
An updated MKDE list object is returned.
Author(s)
Jeff A. Tracey, PhD
USGS Western Ecological Research Center, San Diego Field Station
jatracey@usgs.gov
James Sheppard, PhD
San Diego Zoo Institute for Conservation Research
jsheppard@sandiegozoo.org
Examples
library(terra)
fpath <- system.file("extdata", "dugongdem.RDS", package="mkde")
dugongdem <- terra::readRDS(fpath)
cell.sz <- mean(res(dugongdem))
ext <- ext(dugongdem)
nx <- ncol(dugongdem)
ny <- nrow(dugongdem)
mkde.obj <- initializeMKDE3D(ext$xmin, cell.sz, nx, ext$ymin, cell.sz,
ny, min(values(dugongdem), na.rm=TRUE), 50.0, 15)
mkde.obj <- setMaximumZfromConstant(mkde.obj, 100.0)
[Package mkde version 0.3 Index]