Returns a RasterLayer with maximal five classes:
rr{
class value
background 1L
cloud 2L
cirrus 3L
snow 4L
water 5L
}
Values outside of these classes are returned as NA.
If confLayers = TRUE then a RasterStack with one layer per condition (except 'background') is returned, whereby each layer contains the confidence level of the condition.
rr{
Confidence value
low 1L
med 2L
high 3L
}
Details
By default each class is queried for *high* confidence. See encodeQA for details. To return the different confidence levels per condition use confLayers=TRUE.
This approach corresponds to the way LandsatLook Quality Images are produced by the USGS.