Description Usage Arguments Details See Also
Extract data corresponding to one deployment from the raw data recorded by a sensor over a leg.
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, ...)
|
data |
data (or metadata) for this sensor, read by |
start, stop |
start and stop times, as |
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. |
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.
disc_read
and disc_extract_deployments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.