Flag observations that should be trimmed from beginning and end of deployment
adcp_start_end_obs_to_trim.RdA change in sensor_depth_below_surface_m greater than
depth_threshold at the beginning or end of the deployment will trigger
a flag of 4. This assumes that the sensor was recording before or after the
ADCP was deployed. Observations of all variables at this timestamp should be
filtered out of the dataset.
Arguments
- dat
Data frame of wave data for a single deployment in wide format.
- depth_threshold
The change in
sensor_depth_below_surface_mthat will trigger a flag of 4 (in metres). Default is 1.0 m, the q95 of all depth data.- return_depth_diff
Logical argument indicating whether to return the column of
depth_diff= abs(lead(sensor_depth_below_surface_m) - sensor_depth_below_surface_m).