Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
Stay organized with collections
Save and categorize content based on your preferences.
Updates an image's mask at all positions where the existing mask is not zero using the value of the image as the new mask value. The output image retains the metadata and footprint of the input image.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["`selfMask()` updates an image's mask by using the image's own values, effectively masking out areas where the original mask is zero."],["The output image from `selfMask()` keeps the same metadata and footprint as the input image."],["This function is useful for creating masks where you want to isolate areas with specific values in the image, like creating a land mask by using a threshold on a water band."],["`selfMask()` is called directly on an image object (e.g., `image.selfMask()`)."]]],[]]