For those interested, here's xgcm's attempt to represent the LLC grid: https://xgcm.readthedocs.io/en/latest/grid_topology.html and here's an example using face connections to do calculations: https://xgcm.readthedocs.io/en/latest/example_eccov4.html#Spatial-Derivatives:-Heat-Budget
Thanks @Deepak Cherian . Without really understanding the code on the example pages, I will put out there that the tripole grid may be best thought of as a special kind of periodic boundary. The basic idea (not necessarily coded this way) is that for a scalar point on the most j-ward row at (i,nlat-1), its neighbor across the cell face in the j-ward direction is at point (nlon-i,nlat-1) using zero-based indexing. That is, there is a reflection across the mid-point of the center of the most j-ward row. With vector quantities you need to keep track of changes in directionality. Unfortunately, this is buried very deep in the POP communication structures where halo updates handle all of this.
Last updated: May 16 2025 at 17:14 UTC