Learn R Programming

RStoolbox (version 0.1.10)

encodeQA: Encode QA Conditions to Integers

Description

Intended for use with the Landsat 8 OLI QA band. Converts pixel quality flags from human readable to integer, which can then be used to subset the QA image. Please be aware of the default settings which differ for different parameters. NOTE: THE NEW USGS LANDSAT COLLECTION 1 DATA HAS CHANGED THE QA BITWORD ASSIGNMENTS. THIS IS NOT YET IMPLEMENTED HERE. DO NOT USE encodeQA, decodeQA and classifyQA FOR LANDSAT COLLECTION 1 DATA (yet)!

Usage

encodeQA(fill = "no", droppedFrame = "no", terrainOcclusion = "no",
  water = "all", snow = "all", cirrus = "all", cloud = "all")

Arguments

fill

Designated fill. Options: c("yes", "no", "all").

droppedFrame

Dropped frame. Options: c("yes", "no", "all").

terrainOcclusion

Terrain induced occlusion. Options: c("yes", "no", "all").

water

Water confidence. Options: c("na", "low", "med", "high", "all").

snow

Snow / ice confidence. Options: c("na", "low", "med", "high", "all").

cirrus

Cirrus confidence. Options: c("na", "low", "med", "high", "all").

cloud

Cloud confidence. Options: c("na", "low", "med", "high", "all").

Value

Returns the Integer value for the QA values

References

https://landsat.usgs.gov/qualityband

Examples

Run this code
# NOT RUN {
encodeQA(snow = "low", cirrus = c("med", "high"), cloud = "high")
# }

Run the code above in your browser using DataLab