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
Describe the bug
When using the function resampling_in_space() to project Sentinel-2 data retrieved with xcube-sh from EPGS:4326 (WGS84) to EPSG:32632 (UTM 32N), a shift has been noticed, when comparing to the reprojection method in rasterio.
To Reproduce
Steps to reproduce the behavior with face data.
Solution:
When non-geographic target GridMapping is created in utm_target_gm = temp_utm_target_gm.to_regular(), the parameter is_lon_360 is set to true, because the values in x are above 180. Then 360 is subtracted from the x-axis to project the x-axis from [0, 360] -> [-180, 180], which induces a shift along the x-axis. This however should not be done for non-geographic target grids.
Describe the bug
When using the function
resampling_in_space()
to project Sentinel-2 data retrieved withxcube-sh
from EPGS:4326 (WGS84) to EPSG:32632 (UTM 32N), a shift has been noticed, when comparing to the reprojection method inrasterio
.To Reproduce
Steps to reproduce the behavior with face data.
The text was updated successfully, but these errors were encountered: