eMapR / LT-GEE

Google Earth Engine implementation of the LandTrendr spectral-temporal segmentation algorithm. For documentation see:
https://emapr.github.io/LT-GEE
Apache License 2.0
198 stars 65 forks source link

Change map mask value for YOD is not consistent with other bands #14

Closed jdbcode closed 3 years ago

jdbcode commented 3 years ago

PR #13 moves the operation to add 1 to the the segment start year to calculate year of change detection (YOD). A consequence is that the mask value -9999 is now -9998, which is different than the other change map bands. Need to make all band mask values consistent. I don't think the issue is breaking anything in the module.

jdbcode commented 3 years ago

This is okay, the line var mask = distImg.select('mag').gt(0); in function getChangeMap defines the final mask anyway.