Skip to content

Commit

Permalink
test pass now
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Jan 13, 2025
1 parent 15ffc19 commit aba862a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions xcube/core/resampling/rectify.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,15 @@ def rectify_dataset(
if source_ds_subset is None:
return None
if source_ds_subset is not source_ds:
source_gm = GridMapping.from_coords(
source_ds_subset.transformed_x,
source_ds_subset.transformed_y,
crs=source_gm.crs,
tile_size=source_gm.tile_size,
)
if "transformed_x" and "transformed_y" in source_ds_subset:
source_gm = GridMapping.from_coords(
source_ds_subset.transformed_x,
source_ds_subset.transformed_y,
crs=source_gm.crs,
tile_size=source_gm.tile_size,
)
else:
source_gm = GridMapping.from_dataset(source_ds_subset)
source_ds = source_ds_subset

if tile_size is not None or is_j_axis_up is not None:
Expand Down

0 comments on commit aba862a

Please sign in to comment.