Description Usage Arguments Details Value Author(s) See Also Examples
Simple boundary, sink and stand checker for DEMs (Digital Elevation Models).
MapChecker( DEM )
RasterLayer object of digital elevation model (DEM) which needs sinkfill for DMMF model
Simple boundary, sink and stand checker for DEMs (Digital Elevation Models). The code defines a cell as a
boundary: when there are at least one NA values and at least one cell with valid value in adjacent cells.
sink: when all adjacent cells of it are higher than the target cell.
stand: when all adjacent cells of it are higher than or equal to the target cell.
The output of the function
MapChecker is a RasterLayer object of the
Potato.Convex for the description of the data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
## Not run: ## Load example data for test running B_Checker function data(Potato.Convex) attach(Potato.Convex) ## Run B_Checker function with original DEM which has internal sinks. DEM <- s.map$DEM_original MapCheck <- MapChecker( DEM ) ## Check maps par(mfrow=c(2,2)) plot(DEM) plot(MapCheck$boundary) plot(MapCheck$sink) plot(MapCheck$stand) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.