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

writeInterpolatedPathVTK

Write path to VTK.


Description

Write the interpolated move path to a VTK file.

Usage

writeInterpolatedPathVTK(move.dat, mkde.obj, description, filename, control)

Arguments

move.dat

A move data object created with initializeMovementData

mkde.obj

An MKDE object created with initialize3DMKDE

description

A text description for the file header

filename

A string for the path and file name

control

A list for finer control

Details

Writes 3D lines between observed locations for move steps. Move steps where the initial location i has a value of FALSE for move.dat$use.obs[i] are omitted. Currently, the list argument control only has three elements: (1) “method” with a default value of “linear”, (2) method.par which is a list of method parameters, and (3) z.scale used to scale the z-coordinates. Only the z.scale should be set by the user at this time.

Value

No value 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(condor)
mv.dat <- initializeMovementData(condor$time, condor$x, condor$y, 
z.obs=condor$z, sig2obs=25.0, sig2obs.z=81.0, t.max=65.0)

data(condordem)
cell.sz <- mean(res(condordem))
ext <- extent(condordem)
nx <- ncol(condordem)
ny <- nrow(condordem)
mkde.obj <- initializeMKDE3D(ext@xmin, cell.sz, nx, ext@ymin, cell.sz,
ny, min(values(condordem), na.rm=TRUE), 30.0, 100)

writeInterpolatedPathVTK(mv.dat, mkde.obj,
"Example California condor move steps", "condor_path.vtk")

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.