water: An example of a water mask

Description Usage Format See Also Examples

Description

Since it is unlikely to have field sites situated on water, most classification models are not well equipped to handle water areas. Typically this is handled by simply ignoring them when building the model. However, depending on the post-rendering analysis, it can be useful to mask them out. This Raster.Layer is a sample water mask for the sample dataset provided egTile. See the examples section for how to use this mask.

Usage

1

Format

A Raster.Layer object with an example water mask: values of 1 indicate water, values of 128 indicate non-water.

See Also

See writeTile and writeTiles for examples of rendering.

Examples

1
2
3
4
5
egTile <- readTile(file.path(system.file("extdata", "egTile", package = "NPEL.Classification"),''),
                   layers=c('base','grnns','wetns','brtns','dem','slp','asp','hsd'))
data(water)
plot (egTile)
plot (raster::mask(egTile,water,maskvalue=1,updatevalue=NA))

henkelstone/NPEL.Classification documentation built on May 17, 2019, 3:42 p.m.