Skip to content

Commit 128f2c3

Browse files
authored
Fix unmasking issue in download_ee_image function (#1977)
1 parent 215048e commit 128f2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geemap/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12894,11 +12894,11 @@ def download_ee_image(
1289412894
raise ValueError("image must be an ee.Image.")
1289512895

1289612896
if unmask_value is not None:
12897-
image = image.selfMask().unmask(unmask_value)
1289812897
if isinstance(region, ee.Geometry):
1289912898
image = image.clip(region)
1290012899
elif isinstance(region, ee.FeatureCollection):
1290112900
image = image.clipToCollection(region)
12901+
image = image.unmask(unmask_value, sameFootprint=False)
1290212902

1290312903
if region is not None:
1290412904
kwargs["region"] = region

0 commit comments

Comments
 (0)