Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
only loosely fit the scope of the **xcube-resampling** repository.
- Added `xcube_resampling.utils.get_utm_crs` to return the UTM CRS for a given
longitude and latitude pair.
- In `xcube_resampling.reproject_dataset`, the dataset is now clipped when the target
grid-mapping covers less than 80% of the source grid-mapping, improving performance
for reprojected cutouts.
- In `xcube_resampling.affine_transform_dataset`, resampling is now performed per
spatial slice, ensuring that interpolation is applied only along the spatial axes
and no longer across non-spatial dimensions (e.g., time).
- When `prevent_nan_propagation=True`, computation is now fully lazy. Previously, the
implementation checked for NaN values in the source array, which triggered loading
of the entire dataset into memory.


## Changes in 0.3.1
Expand Down
4 changes: 2 additions & 2 deletions examples/affine.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
" * lon (lon) float64 64B 50.05 50.15 50.25 50.35 50.45 50.55 50.65 50.75\n",
" * lat (lat) float64 48B 10.55 10.45 10.35 10.25 10.15 10.05\n",
"Data variables:\n",
" refl (lat, lon) float64 384B 0.0 1.0 0.0 2.0 0.0 ... 0.0 2.0 0.0 3.0 0.0</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-298e7c49-52b0-4138-8b74-89b388d11640' class='xr-section-summary-in' type='checkbox' disabled /><label for='section-298e7c49-52b0-4138-8b74-89b388d11640' class='xr-section-summary'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>lon</span>: 8</li><li><span class='xr-has-index'>lat</span>: 6</li></ul></div></li><li class='xr-section-item'><input id='section-d1f68771-7c7b-4b0e-a02d-3fcb43af46f3' class='xr-section-summary-in' type='checkbox' checked /><label for='section-d1f68771-7c7b-4b0e-a02d-3fcb43af46f3' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>50.05 50.15 50.25 ... 50.65 50.75</div><input id='attrs-075dc588-4aae-4dad-8fe0-cba127785710' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-075dc588-4aae-4dad-8fe0-cba127785710' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-fcd756b1-4723-4f61-a7fb-4c98960931f3' class='xr-var-data-in' type='checkbox'><label for='data-fcd756b1-4723-4f61-a7fb-4c98960931f3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([50.05, 50.15, 50.25, 50.35, 50.45, 50.55, 50.65, 50.75])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>10.55 10.45 10.35 10.25 10.15 10.05</div><input id='attrs-c2f461e8-195c-464d-a875-1e4d4102ec12' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c2f461e8-195c-464d-a875-1e4d4102ec12' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1037fefd-a5f5-4cac-b500-42163b3128aa' class='xr-var-data-in' type='checkbox'><label for='data-1037fefd-a5f5-4cac-b500-42163b3128aa' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([10.55, 10.45, 10.35, 10.25, 10.15, 10.05])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-59c34f97-8907-429d-98cc-199fa67e6e59' class='xr-section-summary-in' type='checkbox' checked /><label for='section-59c34f97-8907-429d-98cc-199fa67e6e59' class='xr-section-summary' title='Expand/collapse section'>Data variables: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>refl</span></div><div class='xr-var-dims'>(lat, lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 1.0 0.0 2.0 ... 2.0 0.0 3.0 0.0</div><input id='attrs-7bbb787a-7f1a-49d7-b57e-0b9c866d6bcc' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7bbb787a-7f1a-49d7-b57e-0b9c866d6bcc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e0a3c631-30cf-4938-acf6-966e67540654' class='xr-var-data-in' type='checkbox'><label for='data-e0a3c631-30cf-4938-acf6-966e67540654' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([[0., 1., 0., 2., 0., 3., 0., 4.],\n",
" refl (lat, lon) float64 384B 0.0 1.0 0.0 2.0 0.0 ... 0.0 2.0 0.0 3.0 0.0</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-79bbd7cc-0592-4080-8c24-a40ea51ba6df' class='xr-section-summary-in' type='checkbox' disabled /><label for='section-79bbd7cc-0592-4080-8c24-a40ea51ba6df' class='xr-section-summary'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>lon</span>: 8</li><li><span class='xr-has-index'>lat</span>: 6</li></ul></div></li><li class='xr-section-item'><input id='section-c24b6386-5cb8-4ac6-b2df-998b2d1c3e73' class='xr-section-summary-in' type='checkbox' checked /><label for='section-c24b6386-5cb8-4ac6-b2df-998b2d1c3e73' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lon</span></div><div class='xr-var-dims'>(lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>50.05 50.15 50.25 ... 50.65 50.75</div><input id='attrs-575b1435-bbad-44a5-8774-298aef02be00' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-575b1435-bbad-44a5-8774-298aef02be00' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bc0f856e-0a98-4919-9e3d-6f0c0909b80c' class='xr-var-data-in' type='checkbox'><label for='data-bc0f856e-0a98-4919-9e3d-6f0c0909b80c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([50.05, 50.15, 50.25, 50.35, 50.45, 50.55, 50.65, 50.75])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>lat</span></div><div class='xr-var-dims'>(lat)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>10.55 10.45 10.35 10.25 10.15 10.05</div><input id='attrs-995ddcf7-72ce-4586-996d-b195b0b75698' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-995ddcf7-72ce-4586-996d-b195b0b75698' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-0d3c5211-240b-4f0e-ad90-7b11cccfa0bd' class='xr-var-data-in' type='checkbox'><label for='data-0d3c5211-240b-4f0e-ad90-7b11cccfa0bd' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([10.55, 10.45, 10.35, 10.25, 10.15, 10.05])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-76c3ae06-891c-4bee-9332-23c1c82b8903' class='xr-section-summary-in' type='checkbox' checked /><label for='section-76c3ae06-891c-4bee-9332-23c1c82b8903' class='xr-section-summary' title='Expand/collapse section'>Data variables: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>refl</span></div><div class='xr-var-dims'>(lat, lon)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 1.0 0.0 2.0 ... 2.0 0.0 3.0 0.0</div><input id='attrs-757d3009-d88f-4655-a6be-1f88eaa4469f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-757d3009-d88f-4655-a6be-1f88eaa4469f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-48f6ebdd-7b9c-484e-a527-72f222336df3' class='xr-var-data-in' type='checkbox'><label for='data-48f6ebdd-7b9c-484e-a527-72f222336df3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([[0., 1., 0., 2., 0., 3., 0., 4.],\n",
" [2., 0., 3., 0., 4., 0., 1., 0.],\n",
" [0., 4., 0., 1., 0., 2., 0., 3.],\n",
" [1., 0., 2., 0., 3., 0., 4., 0.],\n",
Expand Down Expand Up @@ -869,7 +869,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.14.3"
"version": "3.13.12"
}
},
"nbformat": 4,
Expand Down
Loading
Loading