R/wc_prep_locations.R
wc_prep_loc.Rd
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")
list of WC datafiles
metadata used to truncate start of diag data for each individual
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 latter case wc is not right-truncated & date of first dive is used for the track start date.