Skip to content

Commit

Permalink
Fix ee.Image.copyProperties deprecation warning (r-earthengine#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
aazuspan committed Feb 27, 2022
1 parent c3e3af3 commit f28e6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee_extra/Algorithms/panSharpening.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def apply_sharpening(img: ee.Image) -> ee.Image:

sharpened: ee.Image = sharpener(source, pan, **kwargs)

sharpened = ee.Image(sharpened.copyProperties(source, pan.propertyNames()))
sharpened = ee.Image(ee.Element.copyProperties(sharpened, source, pan.propertyNames()))
sharpened = sharpened.updateMask(source.mask())

if qa is not None:
Expand Down

0 comments on commit f28e6e3

Please sign in to comment.