Skip to main content

Healpix tools package for Python

Project description

https://travis-ci.org/healpy/healpy.png?branch=master Documentation Status https://mybinder.org/badge_logo.svg https://zenodo.org/badge/2006005.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 2.7, 3.5, or 3.6

  • 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

Note that, as stated here publications based on work using the HEALPix software package should include both of the following:

  1. an acknowledgment statement: “Some of the results in this paper have been derived using the healpy and HEALPix packages”. See the CITATION file for the Bibtex entry.

  2. 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

As healpy is based on HEALPix Software (the C++ library), the same condition applies to it.

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.12.10.tar.gz (4.2 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.12.10-cp37-cp37m-manylinux1_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.7m

healpy-1.12.10-cp37-cp37m-macosx_10_14_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

healpy-1.12.10-cp36-cp36m-manylinux1_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.6m

healpy-1.12.10-cp36-cp36m-macosx_10_14_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

healpy-1.12.10-cp35-cp35m-manylinux1_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.5m

healpy-1.12.10-cp35-cp35m-macosx_10_14_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.5mmacOS 10.14+ x86-64

healpy-1.12.10-cp34-cp34m-manylinux1_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.4m

healpy-1.12.10-cp27-cp27mu-manylinux1_x86_64.whl (13.5 MB view details)

Uploaded CPython 2.7mu

healpy-1.12.10-cp27-cp27m-manylinux1_x86_64.whl (13.5 MB view details)

Uploaded CPython 2.7m

healpy-1.12.10-cp27-cp27m-macosx_10_14_x86_64.whl (8.9 MB view details)

Uploaded CPython 2.7mmacOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: healpy-1.12.10.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

File hashes

Hashes for healpy-1.12.10.tar.gz
Algorithm Hash digest
SHA256 3d797aee3501a810d4f210c1f89af4540e7873eaf196d01a0187bb19d5bfab91
MD5 9293b2e0bbcfaae1eedf0fd21399ef95
BLAKE2b-256 e634da61364cd7826ae6da0dd5cdc0ac1abaa933bf6bee4381986f326bc87a23

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.5 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

File hashes

Hashes for healpy-1.12.10-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 be229d546cfdb7d2673251e50444327c2fcfafb96a48325b9d115198bf1f10ab
MD5 51c0ce700bde48b7d52447cfd508c9fe
BLAKE2b-256 ce620743c157ebb9cafdc9498696892938a5709ed342c5668b22cdf9af7a682e

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 8.8 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for healpy-1.12.10-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 32448c30c50fdc7093c9796e095f487149c28408f3e88c60319601ec7c58e62c
MD5 3775b94a503fc93e97e76da94b02646d
BLAKE2b-256 ab4dcb6c5a12ea13a7cb92a562d1fe99b69cbd2718743378bae387b44fb8ecec

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.5 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

File hashes

Hashes for healpy-1.12.10-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 64820d61a0c5eaeaedbe316686f5b237f691312583d2c237a7f03b50d02004ce
MD5 a201089bf495b3ee5905a2f435f7a4c0
BLAKE2b-256 bf49573b66cd7e8b4aedb987c0635a61e2af88f8a2963db5202bb2c3236ae80e

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for healpy-1.12.10-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 dc7327cc24710460b3880dd1b08ac10ea92e2e344f8cde1a79978c2709f95e52
MD5 625baa2b54643cfa5ece5e049f43a365
BLAKE2b-256 5f034ff375ac9662ea1a39a7ee6c3291c38994f619c9eb20ad6cc4eeeda37d1e

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.5 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

File hashes

Hashes for healpy-1.12.10-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 64e9768d361a68f3504431e3f98f458419c9bb3111274f7aa1e4b30149831ce4
MD5 86e5af7b08d19d4c43830dd2b32034d4
BLAKE2b-256 0977da69d7c768dd0d539c5bc0b21e4c40c8a6b7f5c50d3166bfb680c62e9d45

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp35-cp35m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 8.8 MB
  • Tags: CPython 3.5m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for healpy-1.12.10-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 6dfdb72cd4fdc58c734542e8271e0235cd8779eb2975c3e823f2c6f72c7cba0f
MD5 745138cfb7787d1e6a81ceef71ae707e
BLAKE2b-256 7f6cd5d58a59445aee5871395d4e723b200d2ad897d8fe1dd54a445d6434276a

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.5 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

File hashes

Hashes for healpy-1.12.10-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e92af538530898468fe746ab0f4964d88dee598805050bc175ae62f67735869d
MD5 b18cdc40a0e47a0807451e36f4a588fe
BLAKE2b-256 3e33cd48d3d5bae1df99a018957f62a71baa2c2d51772bec7445f5f25a1ef10f

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.5 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

File hashes

Hashes for healpy-1.12.10-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 00b1e482fa9c0beb506490399c39570ef8682cfbafd098f3fff873db19f28ebf
MD5 8f38afa4abf236d18d633f787d050d11
BLAKE2b-256 2cddf6b2cf35dd7b1ac49d09b9b23c7678eacf4bec073467a007b31ebf97d0d0

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.5 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9

File hashes

Hashes for healpy-1.12.10-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1cdecd6ab3c9209cd124928753c406513cac0aa2d80fdb4eb3e66bb944174840
MD5 3056411f43ea7e6085fe6ecc52c29e47
BLAKE2b-256 af89cdf9bbc8906b556a8862a2e470231ab9963618c6890176f60ecf9b5159ce

See more details on using hashes here.

File details

Details for the file healpy-1.12.10-cp27-cp27m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.10-cp27-cp27m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 2.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for healpy-1.12.10-cp27-cp27m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 763b5bf815708e8c16bc73639a579dae986af959ed3a2979a0cffbe09e30def8
MD5 619dd9e75aaaed0ac32fc1c4ef7ead16
BLAKE2b-256 59777e10d21b95f6c2e67801e71b09d7e2692af9863046d01631079a626db5ae

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