uxarray.grid.coordinates._populate_cartesian_xyz_coord#

uxarray.grid.coordinates._populate_cartesian_xyz_coord(grid)#

A helper function that populates the xyz attribute in UXarray.Grid._ds. This function is called when we need to use the cartesian coordinates for each node to do the calculation but the input data only has the “Mesh2_node_x” and “Mesh2_node_y” in degree.

Note

In the UXarray, we abide the UGRID convention and make sure the following attributes will always have its corresponding units as stated below:

Mesh2_node_x

unit: “degree_east” for longitude

Mesh2_node_y

unit: “degrees_north” for latitude

Mesh2_node_z

unit: “m”

Mesh2_node_cart_x

unit: “m”

Mesh2_node_cart_y

unit: “m”

Mesh2_node_cart_z

unit: “m”