prepare_sites: Snap sites to streams and calculate attributes

View source: R/calc_sites.R

prepare_sitesR Documentation

Snap sites to streams and calculate attributes

Description

Snap sites to streams and calculate attributes

Usage

prepare_sites(sites_map, locid_c = NULL, pid_c = NULL, maxdist = NULL)

Arguments

sites_map

character; name of sites map (observation or prediction sites) as created by import_data.

locid_c

character (optional); column name in the sites attribute table giving a unique site identifier.

pid_c

character (optional); column name in the sites attribute table that distinguishes between repeated measurements at a sampling site.

maxdist

integer (optional); maximum snapping distance. Sites farther away from edges will be deleted.

Details

This function is called by calc_sites and should not be called directly. Sites are snapped to the streams and upstream distance is calculated.


MiKatt/openSTARS documentation built on June 17, 2022, 5:08 a.m.