Skip to main content

Healpix tools package for Python

Project description

https://travis-ci.org/healpy/healpy.png?branch=master Documentation Status

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.

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 HEALPix (Gorski et al., 2005) package”. The complete reference is:

    Gorski, K.M., E. Hivon, A.J. Banday, B.D. Wandelt, F.K. Hansen, M. Reinecke, and M. Bartelmann, HEALPix: A Framework for High-resolution Discretization and Fast Analysis of Data Distributed on the Sphere, Ap.J., 622, 759-771, 2005.

  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.9.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.9-cp37-cp37m-manylinux1_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.7m

healpy-1.12.9-cp37-cp37m-macosx_10_14_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

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

Uploaded CPython 3.6m

healpy-1.12.9-cp36-cp36m-macosx_10_14_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

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

Uploaded CPython 3.5m

healpy-1.12.9-cp35-cp35m-macosx_10_14_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.5mmacOS 10.14+ x86-64

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

Uploaded CPython 3.4m

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

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7m

healpy-1.12.9-cp27-cp27m-macosx_10_14_x86_64.whl (8.6 MB view details)

Uploaded CPython 2.7mmacOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: healpy-1.12.9.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for healpy-1.12.9.tar.gz
Algorithm Hash digest
SHA256 8f75b6d7804cf55d3588c0b5fa8e865de06e65d8da65d74c91f2dcfd4c3376fc
MD5 9c1a5ae49b95b6fdbaf352ac8182b9b8
BLAKE2b-256 0d0d6c4659fb9faccd359881028386abda1f15074d1a89a8e25a67d8b29b8395

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-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.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for healpy-1.12.9-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c465fde488330f7fcd5415a91987fa208469e7dc9c9b340ac0cedc72301536be
MD5 303877bca1cb743c6df7fd2f0d6990ce
BLAKE2b-256 98cc6f46e36d20c8f6dc8ef5998c3bc916d443741647c190d8e7459cb1e2d3cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 8.6 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.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for healpy-1.12.9-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 66973283654db9a99efcbf1eca32d4d0ffc5c1b45ab45e82e845ebb138b71716
MD5 e5a0fdc20dd1a4fc71735199c1c2f822
BLAKE2b-256 2f77b7f191e6f005757f8bb9dd2f77caca701ea40bc0931de41bab76f409151e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-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.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for healpy-1.12.9-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e6fa2e1a162a7b25c7b101a7420c0133810077a65cf9e2209017224dcdb0d2d4
MD5 11f53acd7cd75a60ddcb7ebff5fdf375
BLAKE2b-256 20ac3ec0ce2a9755a934888af7b6296aed030f7d3acdd4812fc9f40a6151b67f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 8.6 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.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for healpy-1.12.9-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 78e76d381437167df1e08f8dedfd8ee7729380240ec6f2089303628c63f512b7
MD5 8aa34da424a3012c19c4da7e9b01817f
BLAKE2b-256 6eb16c9f2028976444b2ac087ebb8139a70983ca9bd7548499f60dcb43054c9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-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.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for healpy-1.12.9-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d11e1253b02d6326c19e2db1e23114e9cd00e6c5e696afebf72939801ca5bb1f
MD5 310f481effb33fbe46598c9fa5023d16
BLAKE2b-256 e92a1cc5ac87abdf36ddf90708807867b322079ed9eeb0e6e86f598050269249

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 8.6 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.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for healpy-1.12.9-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c7e435dbef816c7a802c2a5b423331ecf71e18aac2aa01336024aaff94fee897
MD5 6629a3f047fa1f4afcbd8958a32d8bcb
BLAKE2b-256 cc3d3d5b7ac839165abfed6a7822447109f98d1fb78d78018cac97a3baf37fa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-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.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for healpy-1.12.9-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a695cd58a63848eb6ee0e553228627aa556d03f83344d004067fb3b614d7a14e
MD5 e99e8927dd770bca6e015510f3da48b5
BLAKE2b-256 6adb6b612d29dbb67ac5593c81295e4583cddc283a06807b6f2c7e0c8c1ad7cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-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.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for healpy-1.12.9-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7d943833d5c648ff8b464852c3ee58b24c00246dbc9b5a6c065ba87eb50014e2
MD5 cf6d22582a402a6f5365a97f102c23cf
BLAKE2b-256 48dfab5667e6a8417c4803fb77df7c15943852b0aad3c7b7540e54a22ddff78d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-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.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7

File hashes

Hashes for healpy-1.12.9-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bfa0d691b615eb372db4149ab6e46d001bc5fc7248bd76d8364772826224fd04
MD5 f0ef322b8a3217f4ccd3e688728e3393
BLAKE2b-256 7f7ff595fd8117b1566bd5fe61f4d320f7b8de9703c73753768508a643e93aeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.9-cp27-cp27m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 8.6 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.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for healpy-1.12.9-cp27-cp27m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1cae3b756d9bc75069899317314319b1abf372ebe8f7b02fa71d3ca44cb5f04c
MD5 936c74cc70acef4d0bcb8ab613ce8606
BLAKE2b-256 510fc66e6b4f96a022c3729f53e720eb9d61162723ed287325c584374d65dc70

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