Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Projection of Healpix maps onto a planar grid

Project description

Latest Version License Wheels Format pyversions Read the doc

HealPixProjection is a project to allow easy and efficient projection of healpix maps onto planar grids. It can be used as a standalone program cutsky

$ cutsky 0.0 0.0 --mapfilenames HFI_SkyMap_857_2048_R2.00_full.fits

or as a python function

from hpproj import cutsky
result = cutsky([0.0, 0.0], maps={'Planck 857': {'filename': 'HFI_SkyMap_857_2048_R2.00_full.fits'}} )

or as a python class, for optimization when producting several cuts

from hpproj import CutSky, to_coord
cutsky = CutSky({'Planck 857': {'filename': 'HFI_SkyMap_857_2048_R2.00_full.fits'}})
result = cutsky.cut_fits(to_coord([0., 0.])


For science applications requiring high photometric accuracy, we recommend the drizzlib software developed by CADE, which uses a flux-conserving drizzling method to reproject data between HEALPix and local WCS. Drizzlib is available as standalone software (IDL python) here: . An online interface, drizzweb, is available here: .


  • Galactic and equatorial system supported
  • All projection system from wcslib
  • Project several healpix maps at once, efficiently !
  • Output in fits, png or votable for the central point source photometry


Install hpproj using pip :

$ pip install hpproj

or by running setuptools on source

$ python install


If you are having issues, please let us know.


This project is licensed under the LGPL+3.0 license.

Gitlab-CI Master Build Travis Master Build Code Climate Code Health Master Coverage SonarQube

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
hpproj-0.9.3b-py2.py3-none-any.whl (27.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
hpproj-0.9.3b.tar.gz (22.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page