uxarray.Grid.compute_face_areas

uxarray.Grid.compute_face_areas#

Grid.compute_face_areas(quadrature_rule='triangular', order=4, latitude_adjusted_area=False)#

Face areas calculation function for grid class, calculates area of all faces in the grid.

Deprecated since version 2025.10.0: Use the face_areas property instead for better performance and caching. This method will be removed in a future version.

Parameters:
  • quadrature_rule (str, optional) – Quadrature rule to use. Defaults to “triangular”.

  • order (int, optional) – Order of quadrature rule. Defaults to 4.

  • latitude_adjusted_area (bool, optional) – If True, corrects the area of the faces accounting for lines of constant lattitude. Defaults to False.

Returns:

  • 1. Area of all the faces in the mesh (np.ndarray)

  • 2. Jacobian of all the faces in the mesh (np.ndarray)

Notes

This method performs geometric integration to compute face areas. For HEALPix grids, this may not preserve the equal-area property due to differences between algorithmic pixel definitions and geometric representation. For HEALPix grids, use the face_areas property instead, which ensures mathematical correctness by using theoretical equal areas.