uxarray.Grid.construct_face_centers

uxarray.Grid.construct_face_centers#

Grid.construct_face_centers(method='cartesian average')#

Constructs face centers, this method provides users direct control of the method for constructing the face centers, the default method is “cartesian average”, but a more accurate method is “welzl” that is based on the recursive Welzl algorithm. It must be noted that this method can override the parsed/recompute the original parsed face centers.

Parameters:

method (str, default="cartesian average") – Supported methods are “cartesian average” and “welzl”

Returns:

  • None – This method constructs the face_lon and face_lat attributes for the grid object.

  • Usage

  • —–

  • >>> import uxarray as ux

  • >>> uxgrid = ux.open_grid(“GRID_FILE_NAME”)

  • >>> face_lat = uxgrid.construct_face_center(method=”welzl”)