ee.Image.arrayMask

Stay organized with collections Save and categorize content based on your preferences.
Creates an array image where each array-valued pixel is masked with another array-valued pixel, retaining only the elements where the mask is non-zero. If the mask image has one band it will be applied to all the bands of 'input', otherwise they must have the same number of bands.

UsageReturns
Image.arrayMask(mask)Image
ArgumentTypeDetails
this: inputImageArray image to mask.
maskImageArray image to mask with.