Skip to content

Area Weighted Conservative Remapping  #897

Closed

Description

@philipc2

Overview

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.
  • @rajeeja has been working on area adjustment methodologies. Area adjustment #813
  • 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.

References

Activity

  1. added this to the Remapping milestone on Aug 19, 2024
  2. self-assigned this
    on Aug 19, 2024
  3. added
    new feature
    on Aug 19, 2024
  4. moved this from 📚 Backlog to 📝 To-Do in UXarray Developmenton Jun 23, 2025
  5. philipc2 commented on Jun 23, 2025

    @philipc2
    MemberAuthor

    @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.

  6. hongyuchen1030 commented on Jun 24, 2025

    @hongyuchen1030
    Contributor

    @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.

    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!

  7. removed their assignment
    on Sep 9, 2025
  8. k202077 commented on Feb 3, 2026

    @k202077

    Btw. there is an explicit routine for lat-band clipping (yac_cell_lat_clipping)

  9. moved this from 📝 To-Do to ✅ Done in UXarray Developmenton Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

new feature

Type

No type

Fields

Priority

None yet

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions