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
node_lon
andnode_lat
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:
- node_lon
unit: “degree_east” for longitude
- node_lat
unit: “degrees_north” for latitude
- node_x
unit: “m”
- node_y
unit: “m”
- node_z
unit: “m”