Description Usage Arguments Value
Finds the nearest location on a stream segment to a hydrological station and returns the pourpoint as a spatialpointsdataframe with the same attributes as the input station.
1 | SnapToPourPoint(station, in_DEM, saga_env, upstr_threshold = 35000)
|
station |
spatialpointsdataframe representing a hydrological station |
in_DEM |
character path pointing to hydrologically conditioned DEM. Must be in projected coordinate system and, at a minimum, have filled sinks. |
saga_env |
A SAGA geoprocessing object. Suggested version is 2.2.2. |
upstr_threshold |
integer, number of upstream cells required to initiate channel growth. A smaller number will yield more channels and will snap to smaller streams. Larger numbers will produce only major channel branches. For a 50k DEM, numbers between 20,000 and 50,000 are appropriate to reproduce the main channel network without many small branches. |
a SpatialPointsDataFrame with the same data as the input station, but located on a DEM stream branch.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.