From 128f2c380617166271dd830ecfa13b809a6c717b Mon Sep 17 00:00:00 2001 From: "Lucas B. Ferreira" Date: Thu, 18 Apr 2024 12:52:27 -0600 Subject: [PATCH] Fix unmasking issue in download_ee_image function (#1977) --- geemap/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geemap/common.py b/geemap/common.py index 21ba97250d..0440f97d12 100644 --- a/geemap/common.py +++ b/geemap/common.py @@ -12894,11 +12894,11 @@ def download_ee_image( raise ValueError("image must be an ee.Image.") if unmask_value is not None: - image = image.selfMask().unmask(unmask_value) if isinstance(region, ee.Geometry): image = image.clip(region) elif isinstance(region, ee.FeatureCollection): image = image.clipToCollection(region) + image = image.unmask(unmask_value, sameFootprint=False) if region is not None: kwargs["region"] = region