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:
- 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_areasproperty instead, which ensures mathematical correctness by using theoretical equal areas.