uxarray.Grid.from_face_vertices

uxarray.Grid.from_face_vertices#

classmethod Grid.from_face_vertices(face_vertices, latlon=True)#

Constructs a Grid object from user-defined face vertices.

Parameters:
  • face_vertices (list, tuple, np.ndarray) – array-like input containing the face vertices to construct the grid from. After being converted to np.ndarray, must have shape (n_face, n_max_face_nodes, 2 or 3) or (n_max_face_nodes, 2 or 3) to imply n_face=1. (2 if latlon; 3 to indicate x, y, z)

  • latlon (bool, default=True) – Indicates whether the inputted vertices are in lat/lon, with units in degrees if False, the inputs are assumed to be in Cartesian coordinates (x, y, z)