ee.Image.selfMask

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.

UsageReturns
Image.selfMask()Image
ArgumentTypeDetails
this: imageImage

The image to mask with itself.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!