Tools to analyse HEALPix EO data
Project description
healpix-analyse
A Python toolkit for analysing signals defined on HEALPix spherical grids,
with a focus on Earth Observation data. All operators are implemented in PyTorch
and are fully differentiable through torch.autograd.
Features
- Spherical harmonic transforms — local ALM coefficients, ring-based full-sky SHT (spin-0, 1, 2), power spectra
- Gauge-equivariant convolution —
HealPixConvwith configurable kernel size, gauge types, and number of gauges - Multi-resolution operators —
HealPixDown(smooth / max-pool) andHealPixUp(adjoint upsampling), NESTED ordering - Differentiable by default — all hot-path operations are autograd-compatible
- NumPy and Torch interoperability — accepts both array types, returns the same type
Package map
healpix_analyse/
├── alm.py # Local complex spherical harmonic coefficients
├── alm_latlon.py # SHT for arbitrary iso-latitude grids
├── healpix_sht.py # Ring-based full-sky SHT for HEALPix
├── convol.py # Gauge-equivariant spherical convolution (HealPixConv)
├── down.py # Resolution reduction (HealPixDown)
├── up.py # Resolution increase (HealPixUp)
├── powerspectra.py # Isotropic power spectrum on HEALPix patches
├── powerspectra_lonlat.py # Power spectrum on irregular lon/lat grids
├── healpix_interp.py # Bilinear interpolation on HEALPix (NESTED)
├── make_rectangle.py # Rectangular HEALPix patches from bounding boxes
├── resample.py # Resample HEALPix onto regular lat/lon grids
└── ps.py # Power spectrum utilities
Quick start
import numpy as np
import healpy as hp
from healpix_analyse.alm_latlon import build_rings_from_latlon, anafast_latlon
nside = 64
npix = 12 * nside**2
lmax = 3 * nside
# Random test map
im = np.random.randn(npix)
# Build ring structure from HEALPix coordinates
theta, phi = hp.pix2ang(nside, np.arange(npix))
ring_theta, ring_phi_list, ring_counts, sort_idx = build_rings_from_latlon(
theta, phi, convention="colatitude_rad"
)
# Compute angular power spectrum
cl = anafast_latlon(
im[sort_idx], ring_theta, ring_phi_list, ring_counts,
lmax=lmax, quadrature="equal_area",
)
print(cl.shape) # torch.Size([193])
Installation
pip install git+https://github.com/EOPF-DGGS/healpix-analyse.git
From source (development)
git clone git@github.com:EOPF-DGGS/healpix-analyse.git
cd healpix-analyse
pip install -e .
Documentation
Full documentation is available at eopf-dggs.github.io/healpix-analyse.
To build locally:
pip install -e ".[docs]"
cd docs
make html
Relationship to healpix-geo and healpix-ai
- healpix-geo — HEALPix geometry: pixel coordinates, ellipsoids, coverage queries
- healpix-analyse — signal analysis: SHT, convolutions, power spectra, multi-resolution operators
- healpix-ai — deep learning: autoencoders, U-Nets, forecasters built on top of
healpix-analyse
License
Apache 2.0 — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file healpix_analyse-2026.5.1.tar.gz.
File metadata
- Download URL: healpix_analyse-2026.5.1.tar.gz
- Upload date:
- Size: 9.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4fe761b7e992d6c207011435e6a3a903f04cb231e6d4bfb91cd26eecbc2c0f4
|
|
| MD5 |
438ef9c43bcab32b2daa8750baf1cf49
|
|
| BLAKE2b-256 |
4bd1bb9721b771f124d0a185e10b43f1cacb16bb261a525a98adacea78ee494d
|
Provenance
The following attestation bundles were made for healpix_analyse-2026.5.1.tar.gz:
Publisher:
pypipublish.yml on EOPF-DGGS/healpix-analyse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
healpix_analyse-2026.5.1.tar.gz -
Subject digest:
b4fe761b7e992d6c207011435e6a3a903f04cb231e6d4bfb91cd26eecbc2c0f4 - Sigstore transparency entry: 1506742668
- Sigstore integration time:
-
Permalink:
EOPF-DGGS/healpix-analyse@fd4671a0f0d517c6c5f0f1ffb0c12bcde140b260 -
Branch / Tag:
refs/tags/v2026.5.1 - Owner: https://github.com/EOPF-DGGS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypipublish.yml@fd4671a0f0d517c6c5f0f1ffb0c12bcde140b260 -
Trigger Event:
release
-
Statement type:
File details
Details for the file healpix_analyse-2026.5.1-py3-none-any.whl.
File metadata
- Download URL: healpix_analyse-2026.5.1-py3-none-any.whl
- Upload date:
- Size: 78.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b2c82871b13e82a162efd75392c10ae8edcf2c4bdb936ffe538dfffc1d99fb5
|
|
| MD5 |
72a6beeacf11bf7471168a53a2885311
|
|
| BLAKE2b-256 |
424e9fe89b64dd1f56c23bd02c3c7009a6d08bef28587e554efd41d859c5a4e9
|
Provenance
The following attestation bundles were made for healpix_analyse-2026.5.1-py3-none-any.whl:
Publisher:
pypipublish.yml on EOPF-DGGS/healpix-analyse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
healpix_analyse-2026.5.1-py3-none-any.whl -
Subject digest:
9b2c82871b13e82a162efd75392c10ae8edcf2c4bdb936ffe538dfffc1d99fb5 - Sigstore transparency entry: 1506742786
- Sigstore integration time:
-
Permalink:
EOPF-DGGS/healpix-analyse@fd4671a0f0d517c6c5f0f1ffb0c12bcde140b260 -
Branch / Tag:
refs/tags/v2026.5.1 - Owner: https://github.com/EOPF-DGGS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypipublish.yml@fd4671a0f0d517c6c5f0f1ffb0c12bcde140b260 -
Trigger Event:
release
-
Statement type: