restructures Locations files, formats dates & lc's; keeps the deployments in the metadata and starts each track at its QC start (the deployment start, T0, or a later manual QC start; see wc_deployment_start()); converts to sf geometry - all in preparation for SSM-filtering. Tracks are not truncated at the first or last dive record.

wc_prep_loc(wc, meta, dropIDs, crs = NULL, program = "atn", QCmode = "nrt")

Arguments

wc

list of WC datafiles

meta

metadata; its QC_start_date column sets the start of each track

dropIDs

WC DeploymentID's to be dropped (eg. tags were turned on but not deployed)

crs

a proj4string to re-project diag locations from longlat. Default is NULL which results in one of 4 possible projections applied automatically, based on the centroid of the tracks. See overview vignette for details.

program

specify the aniBOS program contributing data (currently: 'atn', 'irap')

QCmode

specify whether QC is near real-time (nrt) or delayed-mode (dm). In delayed-mode QC, tracks end at a manual QC end or, for ATN, the metadata deployment stop, where given.