Skip to main content

viz.decode_scl

viz.decode_scl(qa)

Decode the Sentinel-2 L2A SCL classification into a boolean mask.

Returns True where the pixel is one of the cloud / shadow classes {3, 8, 9, 10} (cloud shadow, medium-prob cloud, high-prob cloud, thin cirrus). The classification IDs are integers in the SCL band; we round-then-cast in case the band has been interpolated up from a finer grid.