I am not sure which index is used in her script (I guess you are referring to this one?), she can guide you on that.
You can also try the script based on Normalised Burn Ratio:
Try this script: function setup (dss) { setInputComponents(tdss.B08,dss.B12]); setOutputComponentCount(1); } function filterScenes (scenes, inputMetadata) { return scenes.filter(function (scene) { return scene.date.getTime()>=(inputMetadata.to.getTime()-2*31*24*3600*1000) ; }); } function calcNBR(sample) { var denom = sample.B08+sample.B12; return ((denom!=0) ? (sample.B08-sample.B12) / denom : 0.0); } function evaluatePixel(samples,scenes) { var nbrpre = 0; v…
That being said, whichever index you are using, it is best to check, which spectrum is being used (e.g. NIR, SWIR) and think on how it is impacted by other elements in the nature.
Hi! My script uses bands 11 and 12 in a normalized difference index, as these bands are used for heat detection. Additionally, B08 is used to make the result even more reliable, as B08 has low values on these areas. Then, vegetation index is used to avoid vegetated areas and NDWI is used to mask water areas.
Based on differences in water color, the result of mapping water by NDWI varies. For example, here you can see it working pretty well on 2019-09-15, while on 2017-07-17 on you can see that the index has white artefacts where water should be:
I have increased the true color brightness for the NDWI>0 pixels, to highlight diffences in water color:
If you compare the result from 2017-07-17 and the true color image above, you can see, that NDWI failed to classify water areas where water is completely black. I believe this is also why the red areas of my script seep into the water sometimes. Burned areas are usually also very dark and the script gets confused. It is often difficult to create scripts that would highlight only the phenomenon you want and nothing else due to issues like that. Other indices for burned areas, like NBR and BAI, have the same problems.
To avoid that, you should probably map water with a multitemporal script, so that you can check for consistently high moisture during the months. The water bodies mapping script works pretty well.
Thank you! All clear. What’s the best way for me to contact you privately, should I need language I can quote in my published research? Happy to give you more details there - I’m afraid I can’t send PMs here yet, however.
You can contact me. I will be happy to help.
Thank you so much. I’ve sent you an email - looking forward to hearing from you.