uxarray.grid.utils._get_lonlat_rad_face_edge_nodes#
- uxarray.grid.utils._get_lonlat_rad_face_edge_nodes(face_nodes_ind, face_edges_ind, edge_nodes_grid, node_lon, node_lat)#
Construct an array to hold the edge lat lon in radian connectivity for a face in a grid.
- Parameters:
face_nodes_ind (np.ndarray, shape (n_nodes,)) – The ith entry of Grid.face_node_connectivity, where n_nodes is the number of nodes in the face.
face_edges_ind (np.ndarray, shape (n_edges,)) – The ith entry of Grid.face_edge_connectivity, where n_edges is the number of edges in the face.
edge_nodes_grid (np.ndarray, shape (n_edges, 2)) – The entire Grid.edge_node_connectivity, where n_edges is the total number of edges in the grid.
node_lon (np.ndarray, shape (n_nodes,)) – The values of Grid.node_lon.
node_lat (np.ndarray, shape (n_nodes,)) – The values of Grid.node_lat, where n_nodes_total is the total number of nodes in the grid.
- Returns:
face_edges – Face edge connectivity in Cartesian coordinates, where n_edges is the number of edges for the specific face.
- Return type:
np.ndarray, shape (n_edges, 2, 3)
Notes
The function assumes that the inputs are well-formed and correspond to the same face.
The output array contains the Latitude and longitude coordinates in radian for each edge of the face.