voxelize: Voxelize list of trajectories

Description Usage Arguments Value

Description

This function takes a list of 3D trajectories and calculates the average proportion of time that they expend in each voxel of the grid in which the study area is divided.

Usage

1
2
voxelize(synt.list, raster, depth.int, max.lag = 24, time.step = 2,
  parallel = FALSE)

Arguments

synt.list

list with data frames containing the 3D trajectories to process. Each element of the list must be a data.frame containing the columns x, y, depth, and time.stamp columns.

raster

raster dataset (RasterLayer object) used to establish the horizontal dimension and resolution of the 3D grid.

depth.int

sequence of depth values indicating the breaks into which the vertical axis is cut.

max.lag

maximum time period, in hours, above which the segment between two locations will not be included in the rasterization.

time.step

time interval, in minutes, into which the trajectory will be interpolated before the rasterization. This parameter is given to the interpPath function.

parallel

option to apply the function in parallel (if TRUE). This will be passed to the .parallel argument of the ldply function in the plyr package.

Value

The function returns a RasterStack object, with one layer for each depth interval. The name of each layer corresponds to the mean depth of the interval.


aspillaga/fishtrack3d documentation built on June 4, 2019, 9:14 a.m.