Learn R Programming

RStoolbox (version 0.1.1)

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.

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

http://landsat.usgs.gov/L8QualityAssessmentBand.php

Examples

Run this code
encodeQA(snow = "low", cirrus = c("med", "high"), cloud = "high")

Run the code above in your browser using DataLab