You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when running open_dataset with a given geometry, it assume the upper-left corner of the geometry to be the upper-left corner of the pixel to download, which is not necessarily true. Geometry may not align with the raster pixel boundaries and this causes the assigned lat/lon in xarray to be inaccurate.
I tried to use the coveringGrid() function to obtain an export region geometry that is aligned to raster pixels. For a very small area this fix will work, but the coveingGrid() quickly causes GEE out of memory error when executes over bigger areas because there will be too many grid cells to cover hundreds by hundreds pixels for a medium of high resolution dataset.
Here is my notebook code: https://colab.research.google.com/drive/1kwtIT1Jjw-bwHMppm2-JUfHgGtDzhNlD?usp=sharing
Bug Summary
It seems that when running open_dataset with a given geometry, it assume the upper-left corner of the geometry to be the upper-left corner of the pixel to download, which is not necessarily true. Geometry may not align with the raster pixel boundaries and this causes the assigned lat/lon in xarray to be inaccurate.
I tried to use the coveringGrid() function to obtain an export region geometry that is aligned to raster pixels. For a very small area this fix will work, but the coveingGrid() quickly causes GEE out of memory error when executes over bigger areas because there will be too many grid cells to cover hundreds by hundreds pixels for a medium of high resolution dataset.
Here is my notebook code:
https://colab.research.google.com/drive/1kwtIT1Jjw-bwHMppm2-JUfHgGtDzhNlD?usp=sharing
Steps to Reproduce
https://colab.research.google.com/drive/1kwtIT1Jjw-bwHMppm2-JUfHgGtDzhNlD?usp=sharing
Current Behavior
Extracted lat/lon in xarray may be inaccurate.
Expected Behavior
Extracted lat/lon in xarray accurately align with raster pixel center.
Relevant log output
Xee Version
0.0.19
Contact Details
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: