You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support a general area weighted conservative remapping method. The overlap between source and destinations will be computed and used as a weight for obtaining the remapped value.
Algorithm
This implementation involves two distinct remapping methodologies:
1. Conservative Zonal Remapping (Zonal Average)
Primarily involves remapping along lines of constant latitude.
Collaboration with the YAC team is underway to integrate their serial clipping algorithm, as implemented in the Climate Data Operator (CDO). Refer to their implementation here: clipping
2. General Conservative Remapping
For now, all grid edges are treated as great-circle arcs.
Continue using the latitude-longitude bounding box with the rectangle tree proposed by @philipc2 for querying candidate faces
Utilize the existing gca_gca_intersection routine along with established great-circle-arc polygon area calculations to determine overlap regions.
Helper Functions
Determine candidate faces for overlap between a source and destination grid: Bounds + rectree as implemented right now.
Compute the overlap between two candidate faces. Area of a polygon that consists of purely great circle arcs can be calculated through the Gaussian quadrature formula, just like what YAC did.
I've finished writing the issue body. In short, we can begin integrating the YAC serial C code as mentioned into UXarray, as it covers the entire polygon clipping and area calculation processes. The YAC API aligns closely with our current architecture, so integration should be straightforward. Happy to discuss more details on Slack if needed!
Activity
philipc2 commentedon Jun 23, 2025
@hongyuchen1030
Would you be able to help populate the body of this issue? We should be able to translate some content from #358
No rush on this, since we're a few iterations out before we start to tackle this.
hongyuchen1030 commentedon Jun 24, 2025
Hi @philipc2 ,
I've finished writing the issue body. In short, we can begin integrating the YAC serial C code as mentioned into UXarray, as it covers the entire polygon clipping and area calculation processes. The YAC API aligns closely with our current architecture, so integration should be straightforward. Happy to discuss more details on Slack if needed!
k202077 commentedon Feb 3, 2026
Btw. there is an explicit routine for lat-band clipping (
yac_cell_lat_clipping)