validPixel#

geetools.ImageCollectionAccessor.validPixel(band='')#

Compute the number of valid pixels in the specified band.

Compute the number of valid pixels in the specified band. 2 bands will be created: one with the number of valid pixels (valid) and another with the percentage of valid pixels (pct_valid).

Parameters:

band (str | ee.String) – the band to evaluate for valid pixels. If empty, use the first band

Returns:

an Image with the number of valid pixels or the percentage of valid pixels.

Return type:

ee.Image

Examples