basinsort | R Documentation |
basinsort
is an internal function used by basindelin()
and basinmerge()
to number
drainage basins sequentially from lowest elevation (of lowest point) to highest.
basinsort(dem, basins)
dem |
a raster object, two-dimensional array or matrix of elevations. |
basins |
a raster object, two-dimensional array or matrix of basins numbered as integers. |
a raster object, two-dimensional array or matrix of sequentially numbered basins
basins <- matrix(c(1:4), nrow = 2, ncol = 2)
dem <- matrix(c(4:1), nrow = 2, ncol = 2)
basinsort(dem, basins)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.