The software Fmask (Function of mask) is used for automated clouds, cloud shadows, and snow masking for Landsat (4, 5, 7, and 8) and Sentinel-2 data.
This package implements the Fmask algorithm as a Python module. It is intended that this can be wrapped in a variety of main programs which can handle the local details of how the image files are named and organised, and is intended to provide maximum flexibility. It should not be tied to expecting the imagery to be layed out in a particular manner. This modular design also simplifies the use of the same core algorithm on either Landsat and Sentinel imagery. The wrapper programs take care of differences in file organisation and metadata formats, while the core algorithm is the same for both
Neil Flood, Sam Gillingham