This is a BSD-licensed HEALPix package which is wrapped around the cdshealpix Rust crate.
cdshealpix is multi-platform and is currently deployed on PyPI for i686, x86_64 and aarch64 archs.
pip install cdshealpix
Or
conda install -c conda-forge cdshealpix
Reminder on conda activation/deactivation:
conda config --set auto_activate_base false
conda activate base
conda deactivate
Test:
import cdshealpix
from cdshealpix import healpix_to_lonlat
lon, lat = healpix_to_lonlat(0, 0)
assert lon.rad[0] == 0.7853981633974483
- Nested and Ring HEALPix notation supported
- Cone search
- Elliptical-Cone search
- Polygon search
- Bilinear interpolation
- lonlat_to_healpix and healpix_to_lonlat supports numpy broadcasting
- Rust allows easy concurrency. A
num_threads
optional parameter can be used to allow parallelism. By default, concurrency is disabled. - Get the world vertices corresponding to an HEALPix cell
- Get the neighbours of an HEALPix cell
Here is the link to the documentation for informations about how to use this package.