writeObservedLocationVTK: Write observed locations to VTK.

Description Usage Arguments Details Value Author(s) Examples

View source: R/mkdeFunctions.R

Description

Write the observed points to a VTK file.

Usage

1
writeObservedLocationVTK(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 points for observed locations for move steps. Currently, the list argument control only has one element z.scale used to scale the z-coordinates.

Value

No value is returned

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
11
12
13
14
15
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)

writeObservedLocationVTK(mv.dat, mkde.obj,
"Example California condor locations", "condor_locations.vtk")

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