initializeAreaRaster: Initialize an area raster for a 2.5D MKDE.

Description Usage Arguments Details Value Author(s) Examples

View source: R/mkdeFunctions.R

Description

Initialize the surface area for a 2.5D MKDE.

Usage

1

Arguments

mkde.obj

An MKDE object created using initialize2DMKDE

Details

After creating the MKDE object and setting the lower bounds in the z-dimension using setMinimumZfromRaster, this function computes the surface area of each raster cell and sets the dimension of the MKDE object to 2.5.

Value

Returns a 2.5 MKDE object with an initialized area raster.

Author(s)

Jeff A. Tracey, PhD
USGS Western Ecological Research Center, San Diego Field Station
[email protected]
James Sheppard, PhD
San Diego Zoo Institute for Conservation Research
[email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(raster)
data(pandadem)
cell.sz <- mean(res(pandadem))
ext <- extent(pandadem)
nx <- ncol(pandadem)
ny <- nrow(pandadem)
mkde.obj <- initializeMKDE2D(ext@xmin, cell.sz, nx, ext@ymin, cell.sz, ny)

mkde.obj <- setMinimumZfromRaster(mkde.obj, pandadem)
mkde.obj <- initializeAreaRaster(mkde.obj)

mkde documentation built on May 2, 2019, 6:46 a.m.