Dealing with clouds, shadows and haze in crop imagery
Cloud masking is the step that removes cloudy, shadowed and hazy pixels from a satellite image before any index is calculated. Skip it and a passing cloud shadow looks exactly like a crop problem.
Why clouds are the main limit
Optical satellites measure reflected sunlight, and they cannot see through cloud. Shadows darken every band, while thin cirrus and haze brighten the visible bands and compress NDVI towards lower values. In regions with long cloudy spells, clouds decide how many usable images a season has.
Masks that come with the data
- Sentinel-2 Level-2A the Scene Classification Layer from ESA's Sen2Cor processor flags cloud, cloud shadow, thin cirrus, snow and water
- Landsat Collection 2 the QA_PIXEL band from USGS flags cloud, cloud shadow, cirrus and snow
- Google Earth Engine the Cloud Score+ dataset gives a per-pixel quality score for Sentinel-2 images
Where masks fail
Automatic masks miss the soft edges of clouds, small cumulus and some shadows, and they sometimes flag bright bare soil or greenhouses as cloud. Two habits reduce the damage: grow the mask by a few pixels around every flagged cloud, and look at the true-colour image before acting on any index map.
A field that is only partly clear is better skipped than averaged. If more than a small share of the field is masked, the remaining pixels may not represent it.
When it stays cloudy
More satellites mean more chances of a clear view, which is the point of NASA's Harmonized Landsat and Sentinel-2 dataset. Radar from Sentinel-1 sees through cloud but measures structure and moisture rather than greenness. Monthly or fortnightly composites built from the clearest pixels give a cleaner picture at the cost of timing.
Sources
- ESA Sentinel-2 Level-2A products and Scene Classification, Sentinel Online
- USGS Landsat Collection 2 Quality Assessment bands
- Google Cloud Score+ S2_HARMONIZED, Earth Engine Data Catalog