Description Usage Arguments Value Author(s)
View source: R/calculatePixelsInaRule.R
Uses a set of rules to calculate how many non-NA pixels in a raster follow those rules, using a shapefile to subset those of interest
1 | calculatePixelsInaRule(ras, rule, pol, shp, ...)
|
ras |
rasterLayer to calculate the n of pixels that follow a given rule |
rule |
character string of rule to determine which pixels should be computed |
pol |
numeric. Representation of the polygon of interest in 'pol' for the calculation |
shp |
shapefile indicating the different areas to subset the pixels to consider in the calculation |
... |
Additional arguments |
A list of the percent disturbance, total pixels not NA and how many pixels are disturbed according to the ruls
Tati Micheletti
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.