- mpas_tools.viz.mesh_to_triangles.mesh_to_triangles(dsMesh, periodicCopy=False)¶
Construct a dataset in which each MPAS cell is divided into the triangles connecting pairs of adjacent vertices to cell centers.
dsTris (xarray.Dataset) – A dataset that defines triangles connecting pairs of adjacent vertices to cell centers as well as the cell index that each triangle is in and cell indices and weights for interpolating data defined at cell centers to triangle nodes.
triCellIndices, the cell that each triangle is part of;
nodeCellWeights, the indices and weights used to interpolate from MPAS cell centers to triangle nodes; Cartesian coordinates
lonNodeis guaranteed to be within 180 degrees of the cell center corresponding to
triCellIndices. Nodes always have a counterclockwise winding.