Skip to main content

Healpix tools package for Python

Project description

https://badge.fury.io/py/healpy.svg https://anaconda.org/conda-forge/healpy/badges/version.svg https://travis-ci.org/healpy/healpy.png?branch=master Documentation Status https://mybinder.org/badge_logo.svg https://zenodo.org/badge/DOI/10.5281/zenodo.2605425.svg http://joss.theoj.org/papers/10.21105/joss.01298/status.svg

Description

healpy is a Python package to handle pixelated data on the sphere. It is based on the Hierarchical Equal Area isoLatitude Pixelization (HEALPix) scheme and bundles the HEALPix C++ library.

HEALPix was developed to efficiently process Cosmic Microwave Background data from Cosmology experiments like BOOMERANG and WMAP but it is now used in other branches of Astrophysics to store data from all-sky surveys. The target audience used to be primarily the Cosmology scientific community but currently anyone interested in handling pixelated data on the sphere is very welcome to propose new features.

Capabilities

healpy provides utilities to:

  • convert between sky coordinates and pixel indices in HEALPix nested and ring schemes

  • find pixels within a disk, a polygon or a strip in the sky

  • apply coordinate transformations between Galactic, Ecliptic and Equatorial reference frames

  • apply custom rotations either to vectors or full maps

  • read and write HEALPix maps to disk in FITS format

  • upgrade and downgrade the resolution of existing HEALPix maps

  • visualize maps in Mollweide, Gnomonic and Cartographic projections

  • transform maps to Spherical Harmonics space and back using multi-threaded C++ routines

  • compute Auto and Cross Power Spectra from maps and create map realizations from spectra

The documentation can be found at https://healpy.readthedocs.io, tutorial at https://healpy.readthedocs.io/en/latest/tutorial.html, or execute it on mybinder

Requirements

  • Python 3.6, 3.7, 3.8, or 3.9

  • Numpy (tested with version >=1.5.0)

  • Matplotlib

  • Python development package is required for some distribution (e.g., python-dev package for Ubuntu)

  • Astropy

Quick installation with Pip

The quickest way to install Healpy is with pip (>= 1.4.2), which automatically fetches the latest version of Healpy and any missing dependencies:

pip install --user healpy

If you have installed with pip, you can keep your installation up to date by upgrading from time to time:

pip install --user --upgrade healpy

See INSTALL.rst for further details and other installation options.

Optional

Healpy depends on the HEALPix C++ and cfitsio C libraries. Source code is include with Healpy and you do not have to install them separately.

However, if you have them installed already, Healpy should detect and reuse them instead of building them from source. To use your own installations of HEALPix and cfitsio, you will also need:

See INSTALL.rst for further instructions.

Known issues

  • Building with OpenMP support: the underlying HEALPix C++ library can be built to use OpenMP to speed up some operations on systems with multiple cores. Most, but not all, modern C/C++ compilers support OpenMP, the notable exception being clang.

    If your Healpy build fails with an error message about being unable to link against -lgomp, then this typically means that Healpy detected an already-installed HEALPix C++ library that was built with OpenMP support, but you are trying to build Healpy with a compiler that does not support OpenMP. Try cleaning the build with python setup.py clean –all, and set the environment variables CC and CXX to point to an OpenMP-capable compiler, such as gcc/g++.

  • Healpy does not currently support Windows. See https://github.com/healpy/healpy/issues/25.

  • Incompatibility with cfitisio from HEASOFT: due to a conflict of header file names it is currently not possible to use the cfitsio library provided with the HEASOFT package for compilation of HEALPix C++. HEASOFT’s include directory contains a file called “rotmatrix.h” which clashes with HEALPix’s own rotmatrix.h.

  • Compilation problems in the C++ package: some gcc versions (we have reports for 4.4.5 and 4.4.6) crash with an internal compiler error during compilation of libsharp. Unfortunately we have not found a workaround for this compiler problem. To our knowledge, it has been fixed in gcc 4.4.7 and in the 4.5.x and newer versions.

  • Healpy pixel functions, e.g. ang2pix, do not support 32-bit platforms. See https://github.com/healpy/healpy/issues/194.

Support

For specific HOWTO questions please create a question on StackOverflow and tag it with the healpy tag, so that answers will be easily searchable on google.

If you think you found a bug or you have install issues, open an issue on GitHub: https://github.com/healpy/healpy/issues

For more general discussion, you can write to the healpy mailing list: https://groups.google.com/d/forum/healpy

Contribute

Project development takes place on github, http://github.com/healpy/healpy, please open an issue over there for reporting bugs or suggest improvements. Collaboration is very welcome, just fork the project on github and send pull requests back to the main repository.

Developers

Core developers:

  • Cyrille Rosset

  • Andrea Zonca

  • Martin Reinecke

  • Leo Singer

  • Daniel Lenz

List of contributors: https://github.com/healpy/healpy/graphs/contributors

Acknowledgements

  1. Cite the HEALPix and healpy papers, see the [CITATION file](https://github.com/healpy/healpy/blob/master/CITATION) in the repository.

  2. Add an acknowledgment statement: “Some of the results in this paper have been derived using the healpy and HEALPix packages”.

  3. at the first use of the HEALPix acronym, a footnote placed in the main body of the paper referring to the HEALPix web site, currently http://healpix.sf.net

Project details


Download files

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

Source Distribution

healpy-1.15.0.tar.gz (4.4 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

healpy-1.15.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (18.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ x86-64

healpy-1.15.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl (17.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.5+ i686

healpy-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

healpy-1.15.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (18.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.5+ x86-64

healpy-1.15.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl (17.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.5+ i686

healpy-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

healpy-1.15.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (18.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.5+ x86-64

healpy-1.15.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl (17.2 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.5+ i686

healpy-1.15.0-cp37-cp37m-macosx_10_9_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

healpy-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (18.1 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.5+ x86-64

healpy-1.15.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl (17.2 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.5+ i686

healpy-1.15.0-cp36-cp36m-macosx_10_9_x86_64.whl (6.9 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file healpy-1.15.0.tar.gz.

File metadata

  • Download URL: healpy-1.15.0.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0.tar.gz
Algorithm Hash digest
SHA256 e09300a9f24e40b07f09ca7a7026d640a0478960b6ca6a5fc85052c0bb4335bf
MD5 f0fc4e0a818fae18d349b66b05c7b178
BLAKE2b-256 7243b0b2d086de23157f0a478b22252cf68e184aeb7632a2ddef861b5b83e3b1

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.15.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
  • Upload date:
  • Size: 18.1 MB
  • Tags: CPython 3.9, manylinux: glibc 2.5+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 deb21d0b2a41a6efa2b896028501145f91a7507db942f605dbfad46b9ef9331c
MD5 ec0817fb970445d690bf9c288bc5dafd
BLAKE2b-256 6ab8df86ff27754da8faaa0a7efc8530c9e989c2f00092f889b347b3b3386c5f

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.15.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.9, manylinux: glibc 2.5+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 832085ee5f2a2e342dbeb36b2acf567b74e2d2e3d0d5fa6651fbdf48e16661f4
MD5 c922614b87430ffb75c6dbdc0049fa83
BLAKE2b-256 79c9eccc8a469ee4a63b9f68eeb12f0f72b07d9a4e153d6b45b1d55f0c784ff7

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: healpy-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 6.9 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a3f91214f3b2b17fbe2e027c2903317cda7ede05efc2b7f32d84f50f1ad9681d
MD5 70e44f449352a549a92f5edf48c9f5ee
BLAKE2b-256 c484bdfa5ede2a723de7f429550ac3ea0fde5471bae4f2798c39b8a6234bd330

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.15.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
  • Upload date:
  • Size: 18.2 MB
  • Tags: CPython 3.8, manylinux: glibc 2.5+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 82822762be56ac1db4655a685cb609bcff310158fb2214eedbcd8592608a06a4
MD5 33244657884be2d0e0bec3813d792c24
BLAKE2b-256 40dc3ac60954de07834b51874d68190e577ee800b0a8019c6153d3f4cf52644b

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.15.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
  • Upload date:
  • Size: 17.3 MB
  • Tags: CPython 3.8, manylinux: glibc 2.5+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 548bfdfb6263d829c1c1a69ac4e3d4a7d059b8068a56ca42d18f79d2dcd6c953
MD5 2dcd4b83ebed6e476c215b4cc2ed1464
BLAKE2b-256 fa4bf314c28621646fef77841c55b2caf8b48415d57364bd59df70d13ce7db89

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: healpy-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 7.0 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 257abd88dfe9deb8818116ec0294a53e41f1c7ac9b0795700a04e419e08f8d85
MD5 3ffca87a575314a8d6203f2c6a8d2def
BLAKE2b-256 e1a9d9f410b155a2dafdca1ecab38dd51046372b6400b222cdfc6c43818072df

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.15.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
  • Upload date:
  • Size: 18.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.5+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3501537abfda74fcd63b3157d93e4d56acadd5ad3d8545106bf635f5cb01ebb5
MD5 3872f81e2d73d52d836d585bdc727db4
BLAKE2b-256 5e757a2c6c0c48f62fdaad254001e7dfac6f1f1f77066d4bcfb764eb467d3905

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.15.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.5+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 5df1248a465807312361fe9bba8b5e02e47c458ce72379730a73d48ef0206735
MD5 b14c7da01c62bf9db590371a5986fe8d
BLAKE2b-256 c80a2e4d33b710534b9cc20e45cae53cc29a6d46aec9997788741a3b7414af9a

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: healpy-1.15.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 6.9 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d2baa63cdfb5757e22cff79b6f1d2448d67d1dbf449c5596a38eba91ed12a690
MD5 23e952159a7dd27927635c36432b0815
BLAKE2b-256 0255b6083cb91a59c60601ae260adb6433124b74ded8516cb2621e7c232aa0c1

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
  • Upload date:
  • Size: 18.1 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.5+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 28b6c60a331d05649563ca73a139d93836c8ebafe17f99a590bd45a98d3e290c
MD5 d48e66321ab392849b7dfb207a95de58
BLAKE2b-256 dc5d670a661353609daca6ce828c404c450152564db93652004b5d4196920177

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.15.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.5+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 c18d3089e8eae36af8789a74510136cbe22bc7b0fabfa7fe584d37fec74cda63
MD5 d34e1fab487c7f9c51fff987b9fefac2
BLAKE2b-256 afde923b926286913e56fefef6d80be1a6263b659cd0b18748355e8eb9b32188

See more details on using hashes here.

File details

Details for the file healpy-1.15.0-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: healpy-1.15.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 6.9 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for healpy-1.15.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7e0bc24c3d3aeb1ef81b9b0473a497355a288e24d6bbfda753633484fe41df97
MD5 ad4f7a36111fbcdf6210358623cb1281
BLAKE2b-256 07e1e4d51d53096a72ec15b8e264ac216618f8717bb726c25fc65ec0c31e7711

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page