Learn R Programming

CSHShydRology (version 1.4.2)

ch_volcano_pourpoints: Creates a sample file of pour points

Description

Creates a file of pour points for the volcano DEM. The pour points define the outlets of sub-basins. These pour points are used by examples within other functions.

Usage

ch_volcano_pourpoints(pp_shp)

Value

Returns an sf object containing 2 pour points for the volcano DEM. The pour points are also written to the specified file.

Arguments

pp_shp

Name for shapefile to hold pour points

Author

Dan Moore and Kevin Shook

See Also

ch_volcano_raster ch_wbt_pourpoints

Examples

Run this code
pourpoint_file <- tempfile("volcano_pourpoints", fileext = c(".shp"))
pourpoints <- ch_volcano_pourpoints(pourpoint_file)
plot(pourpoints)

Run the code above in your browser using DataLab