Skip to content

Conversation

@juliasloan25
Copy link
Member

Closes #2398

Content

To Do

  • We encountered zero area polygons when using spaces with odd h_elem, but not even h_elem. We should investigate this more

Prototype regridding latitude

Source field

field1

Source field with one value per element

field1_one_value_per_element

Destination field (remapped)

field2
  • Code follows the style guidelines OR N/A.
  • Unit tests are included OR N/A.
  • Code is exercised in an integration test OR N/A.
  • Documentation has been added/updated OR N/A.

@ph-kev
Copy link
Member

ph-kev commented Dec 13, 2025

Thanks to @imreddyTeja for helping with debuging the zero area polygons. The zero area polygons are line segments on a lonlat grid. If you convert to Cartesian coordinates, and plot them on a XYZ grid, then the vertices of the elements have positive area. In particular, they correspond to polygons at the north and south poles.

See the plot below where the yellow nodes correspond to one of the zero area polygons.
image

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.

Write a function to convert 2D ClimaCore space to vector of coordinates

3 participants