Closed jobthoma97 closed 3 weeks ago
hi @jobthoma97 , yes it's possible the CFMASK algorithm applied on Landsat tends to create false positives on very bright features. Have you tried using settings['cloud_mask_issue'] = True
? This should help. If the problem persists let me know, there is another solution.
Hello @kvos, Thank you for replying.
Initially, 'cloud_mask_issue' was set to "False" but I'm encountering the same issue after setting it to "True".
ok then go /coastsat/SDS_preprocess.py and change line 390:
elem = morphology.square(6) # use a square of width 6 pixels
if you change that 6 to 8 for example, it may get you rid of that issue.
Thank you, I'll try doing the given solution.
But this "elem = morphology.square(6)" is not available on line 390, for me its on line 335.
And is it okay if I use the updated code for different period or different study area or should I change only for those area/period when it reads false positive pixel value. Will this affect the resolution of the shoreline ?
Hi @kvos , I was able to remove the mask, for me pixel width of 8 was not working. I tried it using all different values and pixel width 30 removed the cloud mask.
Will this reduce the accuracy of shoreline extraction? Is it okay to set "elem = morphology.square(30)" as pixel width for different period for the same study area ?
that's a lot, I think you may end up missing the real clouds this way but you can test.
Hello @kvos ,
I was trying to run the CoastSat toolkit on Wajima, Noto Region, Japan.
Certain areas on the images were masked, First I thought its actual cloud. Then this happened to some other images as well. To check the clouds, I opened some satellite image and there were no clouds. What I noticed was, there were some build up area with high reflectance. Maybe because of this, the code was considering them as clouds and masking the image. Due to which its not mapping the shoreline for the masked area.
How to resolve this!!!! Your help would be appreciated.
RGB image opened in QGIS (High reflectance area marked with yellow circle):
FCC image opened in QGIS (High reflectance area marked with yellow circle):
Cloud Masked Image: