knitr::opts_chunk$set( collapse = TRUE, eval = FALSE, echo = TRUE, comment = "#>" )
This is a subtopic of the Database
workflow. It covers all handling of the detection data, from the files downloaded in the field to appending the database.
YB_Vemco/
using the ybt::copy_vrls()
function.ybt::format_VUE_detections()
functionybt::ybt_db_append()
functionCreate a VUE database (.vdb) for field downloads
Filename convention: "YB_fieldyyyy_mmdd.vdb"
Put the .vdb, along with each individual .vrl and its RLD file, into its own subdirectory of the "FieldDownloads" folder. Example:
YB_Vemco |-- YBFieldDownloads | |-- Field2020_0901 | `--Field2020_0901.vdb | `--VR2W_104440_20200901_1.vrl | `--VR2W-RLD_104440_20200901_1.vrl | `--VR2W_123456_20200901_1.vrl | `--VR2W-RLD_123456_20200901_1.vrl
YB_Vemco/
using the ybt::copy_vrls()
function.Name the new subfolder with the range of download dates covered and a "_vrls" suffix. This will result in a directory structure like the following:
YB_Vemco |-- YBDetections_2020_0901-2021_0523_vrls `--VR2W_104440_20200901_1.vrl `--VR2W_123456_20200901_1.vrl `--VR2W_104440_20210523_1.vrl `--VR2W_123456_20210523_1.vrl |-- YBFieldDownloads | |-- Field2020_0901 | `--Field2020_0901.vdb | `--VR2W_104440_20200901_1.vrl | `--VR2W-RLD_104440_20200901_1.vrl | `--VR2W_123456_20200901_1.vrl | `--VR2W-RLD_123456_20200901_1.vrl | |-- Field2021_0523 | `--Field2020_0901.vdb | `--VR2W_104440_20210523_1.vrl | `--VR2W-RLD_104440_20210523_1.vrl | `--VR2W_123456_20210523_1.vrl | `--VR2W-RLD_123456_20210523_1.vrl
YB_Vemco |-- YBDetections_2020_0901-2021_0523_vrls |-- YBDetections_2020_0901-2021_0523_dc `-- YBDetections_2020_0901-2021_0523_dc.vdb |-- YBFieldDownloads
Import raw field .vrls with the VRL editor tool and drift-correct upon import; accept the default appendix to filenames ("_edited.vrl").
If any errors are reported in the import log, save the import log as a .txt file with and _error tag, i.e.: "YBDetections_2020_0901-2021_0523_dc_Log_todaysdate_error.txt", within the _dc subfolder. If we run into weird issues during the analysis, this is a good starting point to help us trace problematic or missing detection files. NO need to save the log if everything imports successfully.
Export drift-corrected detections as one .csv into the same _dc subfolder.
ybt::format_VUE_detections()
functionThis is done using the ybt::ybt_db_append()
function; see vignettes('Database', package = 'ybt')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.