1

My current code: https://code.earthengine.google.com/5ff735e22e894a6c1b5ddc628cfccae7

I have an inequality from line 99-106. I want this inequality to assign a value of 1 to all pixels that satisfy the inequality and remove all pixels that do not satisfy the inequality to be removed entirely.

At the moment, it creates a binary image where pixels that are less than the threshold have a value of 0 and pixels that are greater than the threshold have a value of 1.

I have set an image to automatically display for testing purposes (black = 0, teal= 1. I ultimately want to have the displayed image on have teal that will change in extent as the inequality threshold changes.

1
  • 5
    You can't "remove" pixels, but you can make a mask based on your binary image to apply to other images or imagecollections; e.g. gis.stackexchange.com/questions/283415/… Masked pixels will not be considered for calculations.
    – Jon
    Commented Mar 13, 2019 at 18:36

0

Your Answer

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