rm_land_detects: Remove detections that occurred away from the river network

Description Usage Arguments Value Examples

View source: R/rmLandDetects.R

Description

Remove detections that occurred away from the river network

Usage

1
rm_land_detects(all_data, river_network, dist_thresh = 500)

Arguments

all_data

The output of combine_data.

river_network

A river_network object discribing the riversystem topology (the output of line2network. The coordinates should use the same projection as the all_data. Note: attr(all_data, "crs") the CRS of all_data.

dist_thresh

Distance criteria (in m) to remove detections

Value

Returns a data.frame containing the detections that occurred less than dist_thresh m from the river network.

Examples

1
2
3
4
5
6
sldf <- sp::spTransform(sldf, attr(all_data, "crs"))
par(mfrow=c(2,1))
# be patient -- these functions take a few minutes to run
make_plot(sldf, all_data, open_maps=T)
river_detects <- rm_land_detects(all_data, river_net, dist_thresh = 500)
make_plot(sldf, river_detects, open_maps=T)

jBernardADFG/telprep documentation built on July 26, 2020, 2:17 a.m.