Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setMinimumZfromRaster

Set minimum z-axis values from a raster


Description

Set the lower bounds in the z-dimension for each location in the x and y dimensions from a raster.

Usage

setMinimumZfromRaster(mkde.obj, raster.layer)

Arguments

mkde.obj

A 2D or 3D MKDE object created with initialize3DMKDE or initialize3DMKDE, respectively

raster.layer

A RasterLayer object representing the lower bounds of the space the animal may occupy in the z-dimension.

Details

This function sets the lower bounds of the space the animal may occupy in the z-dimension. For example, the ascii.raster.file argument may represent a raster for elevation, depth of the sea floor, or other surface.

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(raster)
data(dugongdem)
cell.sz <- mean(res(dugongdem))
ext <- extent(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 <- setMinimumZfromRaster(mkde.obj, dugongdem-20.0)

mkde

2D and 3D movement-based kernel density estimates (MKDEs).

v0.1
GPL (>= 3)
Authors
Jeff A. Tracey, James Sheppard, Jun Zhu, Robert Sinkovts, Amit Chourasia, Glenn Lockwood, and Robert N. Fisher
Initial release
2011-08-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.