Skip to content

Incorrect HEALPix Area Calculation #1236

Closed

Description

@philipc2

The area of each HEALPix pixel can be derived using Ω_pix = 4π / (12 * Nside²) = π / (3 * Nside²)

Our internal area calculation does not produce the correct area. From my understanding, I believe this is due to boundaries between pixels not being defined as a typical edge/gca, which throws off our internal calculations. Approximating the boundary as a GCA leads to the area be

>>> uxgrid = ux.Grid.from_healpix(zoom=0, pixels_only=True)
>>> uxgrid.face_areas

array([0.94349613, 0.94349613, 0.94349613, 0.94349613, 1.2620424 ,
       1.2620424 , 1.2620424 , 1.2620424 , 0.94349613, 0.94349613,
       0.94349613, 0.94349613])

The expected area should be ~1.047

The faces near the equator have a larger area, with those near the poles having a smaller area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions