ubarsc / python-fmask

A set of command line utilities and Python modules that implement the ‘fmask’ algorithm
https://www.pythonfmask.org
GNU General Public License v3.0
74 stars 21 forks source link

Output file are colored with one colour #53

Closed janceviciusjulius closed 2 years ago

janceviciusjulius commented 2 years ago

I am trying to run f-mask algorith with this simple demo code: image

and I got this result: image

while .SAFE folder which I use looks: image

Can you help me solve this problem?

Thank You. Looking forward to hearing from you

neilflood commented 2 years ago

I don't know exactly what is going on there. However, since this image is from around 55 degrees north, in winter, it may be an example of a known problem with low sun angles. There is some discussion of it here #11.

As mentioned there, it may need some adjustment of the thresholds. The first one to play with would be --cloudprobthreshold, which you could increase to 50 (as suggested in the discussion), and then try a few different values to see what works best.

The other two thresholds which might be relevant are related to the snow calculations, --nirsnowthreshold and --greensnowthreshold. As suggested in the older discussion, they could be increased to 0.3, and see what happens.