Skip to content

Commit ff2eb85

Browse files
authored
Merge pull request #1152 from xcube-dev/konstntokas-xxx-add_reprojection
Add reprojection
2 parents 4596adf + 279ee44 commit ff2eb85

File tree

9 files changed

+9260
-2
lines changed

9 files changed

+9260
-2
lines changed

CHANGES.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,33 @@
1515
* Pinned `tornado >=6.0,<6.5` due to an incompatibility with current
1616
xcube server implementation.
1717

18+
### Enhancements
19+
20+
* Introduced a more efficient and robust approach for dataset reprojection:
21+
22+
* **New method:** Added `xcube.core.resampling.reproject_dataset`, a high-performance
23+
alternative to `xcube.core.resampling.resample_in_space` for reprojecting datasets
24+
to different coordinate reference systems (CRS).
25+
26+
* **Recommended usage:** Ideal for reprojection between regular grids. It improves
27+
computational efficiency and simplifies the reprojection process.
28+
It is not addressing _rectification_ from irregular to regular grids (e.g., Sentinel-3).
29+
30+
* **Validation:** The notebook `examples/notebook/resampling/reproject_esa_cci_landcover_new_method.ipynb`
31+
shows that `reproject_dataset` and `resample_in_space` produce nearly identical
32+
results when reprojecting to a different CRS, with only negligible differences.
33+
34+
* **Backward compatibility:** `resample_in_space` remains available to preserve
35+
compatibility with existing services. Once `reproject_dataset` proves stable in
36+
production use, it may be integrated into `resample_in_space`.
37+
38+
* **Technical context:** `resample_in_space` currently uses either affine transforms
39+
or the [Spatial Rectification Algorithm](https://xcube.readthedocs.io/en/latest/rectify.html#spatial-rectification-algorithm),
40+
which is specialized for non-regular 2D grids (e.g., Sentinel-3). While applicable
41+
to regular grid reprojection, the algorithm is unnecessarily complex for such cases.
42+
43+
44+
1845
## Changes in 1.9.1
1946

2047
### Enhancements

examples/notebooks/resampling/reproject_large_esa_cci_landcover.ipynb renamed to examples/notebooks/resampling/reproject_esa_cci_landcover.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4467,7 +4467,7 @@
44674467
"name": "python",
44684468
"nbconvert_exporter": "python",
44694469
"pygments_lexer": "ipython3",
4470-
"version": "3.12.7"
4470+
"version": "3.13.2"
44714471
}
44724472
},
44734473
"nbformat": 4,

0 commit comments

Comments
 (0)