Skip to content

Regridding improvements: support datasets, nodal data, add nearest and inverse distance#369

Draft
Huite wants to merge 14 commits into
mainfrom
dataset-regridder
Draft

Regridding improvements: support datasets, nodal data, add nearest and inverse distance#369
Huite wants to merge 14 commits into
mainfrom
dataset-regridder

Conversation

@Huite

@Huite Huite commented Jun 13, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@Huite Huite marked this pull request as draft June 13, 2025 16:08
Huite added 3 commits June 20, 2025 15:39
* Simplify StructuredGrid1d linear weights
* Expand UnstructuredGrid2d tests
* Add facet property to regridding Grids
* Avoid singularity in inverse distance weighting
* Remove decreasing y axes in fixtures
* Simplify Structured1d: get rid of overlap_1d_structured and locate_inside.
* Fix boolean logic in _find_neighbor; 1 and -1 are allowed at source_index 0 and n-1 respectively!
Comment thread xugrid/regrid/overlap.py
raise ValueError(
f"source is {source.facet} associated, target is {target.facet} "
"associated. OverlapRegridder can only regrid face to face, or "
"node to face."

@Huite Huite Jul 7, 2025

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can refer to the LocatorRegridder here instead for face -> node.

Actually, just use locate_inside?

Only node -> node should fail? Then point to Nearest or InverseDistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable regridder for dataset

1 participant