uxarray.grid.coordinates._populate_lonlat_coord

uxarray.grid.coordinates._populate_lonlat_coord#

uxarray.grid.coordinates._populate_lonlat_coord(grid)#

Helper function that populates the longitude and latitude and store it into the node_lon and node_lat. This is called when the input data has node_x, node_y, node_z in meters. Since we want node_lon and node_lat to always have the “degree” units. For more details, please read the following.

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”