Skip to content

Commit fe00ce6

Browse files
committed
add comment about area
1 parent b620b81 commit fe00ce6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

uxarray/grid/grid.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,6 +1904,8 @@ def compute_face_areas(
19041904
"""
19051905
if self.source_grid_spec == "HEALPix":
19061906
# Derive HEALPix Area
1907+
# Ω_pix = 4π / (12 * Nside²) = π / (3 * Nside²)
1908+
# Górski et al. 2005, “HEALPix: A Framework for High‐Resolution Discretization and Fast Analysis of Data Distributed on the Sphere”
19071909
n_side = self._ds.attrs["n_side"]
19081910
face_area = np.pi / 3 * n_side**2
19091911
return np.ones(self.n_face) * face_area, None

0 commit comments

Comments
 (0)