Closed konstntokas closed 2 months ago
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.