disc_extract: Raw data extraction

Description Usage Arguments Details See Also

View source: R/disc_extract.R

Description

Extract data corresponding to one deployment from the raw data recorded by a sensor over a leg.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
disc_extract(data, start, stop, dir, verbose, ...)

## Default S3 method:
disc_extract(data, start, stop, dir, verbose = FALSE, ...)

## S3 method for class 'gopro'
disc_extract(data, start, stop, dir, verbose = FALSE,
  width = 1600, gray = FALSE, parallel = TRUE, ...)

## S3 method for class 'goproVideo'
disc_extract(data, start, stop, dir, verbose = FALSE,
  fps = 1, width = 1600, gray = FALSE, parallel = TRUE, ...)

Arguments

data

data (or metadata) for this sensor, read by disc_read.

start, stop

start and stop times, as POSIXct objects.

dir

destination directory, where the extracted data should be stored (without trailing slash, to be able to also name a file based on it).

verbose

output additional information (for debugging purposes) when extracting data.

...

passed to the various methods.

width

width to resize the images to, in pixels. When NULL, images are not resized.

gray

logical; whether to convert the images to grayscale.

parallel

logical, whether to process images and/or videos in parallel (should be left to TRUE by default for speed).

fps

number of frames to extract per second. 0.5 gives one frame every two seconds, 1/3 gives one frame every 3 seconds, 2 gives one frame every 0.5 seconds.

Details

All methods can rely on data having a dateTime column, of class POSIXct. Based on this column, they should extract the data between start and stop and store it in the destination directory.

See Also

disc_read and disc_extract_deployments


jiho/discr documentation built on May 19, 2019, 9:30 a.m.