restructures Locations files, formats dates & lc's; truncates start (and end for "nrt") of individual deployments using ctd dates; converts to sf geometry - all in preparation for SSM-filtering. Splits resulting truncated diag files by species.

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

Arguments

wc

list of WC datafiles

meta

metadata used to truncate start of diag data for each individual

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 latter case wc is not right-truncated & date of first dive is used for the track start date.