R/wc_prep_locations.R
wc_prep_loc.Rdrestructures 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")list of WC datafiles
metadata; its QC_start_date column sets the start of each track
WC DeploymentID's to be dropped (eg. tags were turned on but not deployed)
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.
specify the aniBOS program contributing data (currently: 'atn', 'irap')
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.