2

I'm trying to run fmask on a Sentinel-2 granule. I downloaded the 3.2 version of Windows stand alone software for Sentinel 2 from https://github.com/prs021/fmask When I try to run fmask by calling the FmaskMSI.exe through cmd from the folder containing the Sentinel-2 Granule (or from within the granule folder) i get the following error:

No L*MTL.txt header in the current folder!
Output argument "clr_pct" (and maybe others) not assigned during call to "autoFmask".
MATLAB:unassignedOutputs

The L*MTL.txt suggests that its's looking for a Landsat type product but i specifically point to the Sentinel-2 installation of fmask

How do i get fmask to run for Sentinel-2 data?

2

1 Answer 1

2

You can use the cloud mask .gml file provided by ESA with the archive you download from the hub or other vendors. You only need to convert the .gml file into .shp. I use GDAL's ogr2ogr to do this, a link for this conversion is here: Using ogr2ogr to convert GML to shapefile in Python?

1
  • The cloud mask provided by ESA does not have a satisfactory performance, that's why I am looking for alternatives.
    – unnic
    Commented Jan 18, 2017 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.