gee-community / geetools

A collection of tools to work with Google Earth Engine Python API
https://geetools.readthedocs.io/en/stable/
MIT License
503 stars 121 forks source link

enhance ee.Image.fullLike #266

Closed fitoprincipe closed 1 month ago

fitoprincipe commented 1 month ago

ee.Projection not only stores the CRS but also the nominal scale, and although the CRS is usually constant across all bands, is not the same for the nominal scale (example here). So, one of the modification of this PR is to copy each band's projection to the image generated by ee.Image.fullLike.

In the previous version of fullLike the footprint of the original images was passed to the resulting image. Now the user can choose whether to copy it or not, giving more flexibility to the user.

fitoprincipe commented 1 month ago

test failure is weird since the failing test is not using the modified method at all 🤔

12rambau commented 1 month ago

The test failure is related to GEE slightly changing it's rounding method all the time, you must nuke the nox folder from your side and start the complete test suit again to regenerate the file. I would like to have a better way of testing this with pytest-gee but never found the time to work on it yet.