Skip to content

Commit

Permalink
changelog and comment added
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Jan 13, 2025
1 parent aba862a commit a97ab84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@

### Fixes

* The function `xcube.core.resample.resample_in_space()` now supports the parameter
`source_ds_subset=True` when calling `rectify_dataset`. This feature enables
performing the reprojection exclusively on the congruent subset of the dataset.
* The function `xcube.core.resample.resample_in_space()` now always operates
lazily and therefore supports chunk-wise, parallel processing. (#1082)
* Bux fix in the `has_data` method of the `"https"` data store
Expand Down
3 changes: 3 additions & 0 deletions xcube/core/resampling/rectify.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def rectify_dataset(
if source_ds_subset is None:
return None
if source_ds_subset is not source_ds:
# Handles the case where 2D coordinates are already present in the dataset,
# which typically occurs after a reprojection performed by the
# `resample_in_space` function.
if "transformed_x" and "transformed_y" in source_ds_subset:
source_gm = GridMapping.from_coords(
source_ds_subset.transformed_x,
Expand Down

0 comments on commit a97ab84

Please sign in to comment.