How Can I Access Data in Landsat 8 Quality Assessment Band?

Accessing BQA values

The Landsat Collection 1 Level-1 Quality Assessment (QA) 16-bit band contains unsigned integers that represent bit-packed combinations of surface, atmospheric, and sensor conditions that can affect the overall usefulness of a given pixel.

The following conditions are available:

  • Cloud (cloud presence / cloud mask)
  • Designated fill
  • Terrain occlusion
  • Radiometric saturation
  • Cloud confidence (confidence in cloud presence)
  • Cloud-shadow confidence (confidence in cloud shadow presence)
  • Snow-ice confidence (confidence in snow or ice presence)
  • Cirrus confidence (confidence in cirrus cloud presence)

Each of these values can be obtained using our utility function named decodeLs8Qa. The function returns a dictionary of all conditions, where each condition contains an extracted value. Here is a working example script for extracting cloud values of the BQA band, with the other options commented below:

  return [decodeLs8Qa(BQA).cloud]

//return [decodeLs8Qa(BQA).designatedFill]
//return [decodeLs8Qa(BQA).occlusion]
//return [decodeLs8Qa(BQA).radiometricSaturation * 0.33]
//return [decodeLs8Qa(BQA).cloudConfidence * 0.33]
//return [decodeLs8Qa(BQA).cloudShadowConfidence * 0.33]
//return [decodeLs8Qa(BQA).snowIceConfidence * 0.33]
//return [decodeLs8Qa(BQA).cirrusConfidence * 0.33]

Visit EO Browser to see the script for:

 

Interpreting BQA values

Example interpretation: when using evalscript for Cloud, value 0 means clouds are not present, and value 1 means clouds are present. In the EO Browser, we can observe clouds in white, and all other pixels in black. Below are value interpretations for each of the available conditions.

Note: in the following tables, the color column represents a color legend for the EO Browser visualization, using the scripts listed above. The values could be visualized with different colors, if a different visualization was used.

 

Designated fill, Terrain occlusion & Cloud

 

Value Description Color
0 This condition does not exist Black
1 This condition exists White

BQA Cloud over Italy, 2022-01-26

 

Radiometric saturation

 

Value Description Color
0 No bands contain saturation Black
1 1-2 bands contain saturation Dark grey
2 3-4 bands contain saturation Light grey
3 5 or more bands contain saturation White

BQA Radiometric saturation over Italy, 2022-01-26

 

Cloud confidence, Cloud shadow confidence, Snow ice confidence & Cirrus confidence

 

Value Description Color
0 Not Determined (algorithm did not determine the status of this condition) / No (this condition does not exist)

Black

1 Low - algorithm has low to no confidence that this condition exists (0-33 percent confidence) Dark grey
2 Medium - algorithm has medium confidence that this condition exists (34-66 percent confidence) Light grey
3 High - algorithm has high confidence that this condition exists (67-100 percent confidence) White

BQA Cloud confidence over Italy, 2022-01-26

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.