I have trouble handling a dataset (ArcticDEM) on google earth engine. The images in the ArcticDEM dataset come already masked out, therefore an imagecollection sometimes contains images which have very limited pixels, where many pixels have the value of "masked". I want to create a script, which would automatically remove an image from an imagecollection, if it contains less than a certain amount of unmasked pixels within the region of interest.
I also tried instead of removing images from imagecollection, to append the "good" images to a new imagecollection, however that didn't work for me either.
Does anyone know how to I should proceed? The image below is an example of an image containing too many masked pixels. Script: https://code.earthengine.google.com/b629febdaa1448b2a6847233526348b7