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

  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.14.0.tar.gz (4.8 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.14.0-cp39-cp39-manylinux1_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.9

healpy-1.14.0-cp38-cp38-manylinux1_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.8

healpy-1.14.0-cp38-cp38-macosx_10_15_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.8macOS 10.15+ x86-64

healpy-1.14.0-cp37-cp37m-manylinux1_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.7m

healpy-1.14.0-cp37-cp37m-macosx_10_15_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.7mmacOS 10.15+ x86-64

healpy-1.14.0-cp36-cp36m-manylinux1_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.6m

healpy-1.14.0-cp36-cp36m-macosx_10_15_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.6mmacOS 10.15+ x86-64

healpy-1.14.0-cp35-cp35m-manylinux1_x86_64.whl (15.7 MB view details)

Uploaded CPython 3.5m

healpy-1.14.0-cp35-cp35m-macosx_10_15_x86_64.whl (7.2 MB view details)

Uploaded CPython 3.5mmacOS 10.15+ x86-64

healpy-1.14.0-cp27-cp27mu-manylinux1_x86_64.whl (15.8 MB view details)

Uploaded CPython 2.7mu

healpy-1.14.0-cp27-cp27m-manylinux1_x86_64.whl (15.8 MB view details)

Uploaded CPython 2.7m

healpy-1.14.0-cp27-cp27m-macosx_10_15_x86_64.whl (7.4 MB view details)

Uploaded CPython 2.7mmacOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: healpy-1.14.0.tar.gz
  • Upload date:
  • Size: 4.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for healpy-1.14.0.tar.gz
Algorithm Hash digest
SHA256 2720b5f96c314bdfdd20b6ffc0643ac8091faefcf8fd20a4083cedff85a66c5e
MD5 2e56fdad5fa3780f7381449a7b2672fb
BLAKE2b-256 52bb21e57f6b3a4c2a3bb59fb2a284fccf6ea15241a180e86ace1f9b891e251b

See more details on using hashes here.

File details

Details for the file healpy-1.14.0-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.14.0-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.8 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for healpy-1.14.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9e3fee68014e76c8f1866e1673806b63304402db3bb44bc29eebf9e6a048b186
MD5 2e7907cc3744abb2f449844e31f1b14e
BLAKE2b-256 a4256a0ee617e1139e2101a49683f8726bbb0d3ce86b9cfa8f8fc037220ef327

See more details on using hashes here.

File details

Details for the file healpy-1.14.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: healpy-1.14.0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.8 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for healpy-1.14.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5cb4df677cc0dfe2eb258958b7e5803c547eb727923dec8aa5719128877c570a
MD5 f208e87a3fd6b247ed9fd2e89c8e6fb7
BLAKE2b-256 a4ca04a7d7fd6aaa35750e3b70fc6de4e4b80eed0b7e8e54c50c6d8bf60f85e9

See more details on using hashes here.

File details

Details for the file healpy-1.14.0-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: healpy-1.14.0-cp38-cp38-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 7.2 MB
  • Tags: CPython 3.8, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for healpy-1.14.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 934e0c0e7303b521526ab964087aed268b6b97a32de77ce5d0e15b027a2d26b4
MD5 3249bd9dceb86fcb4e4d30d9b04182bb
BLAKE2b-256 2e8f75d0d0dbd742e13c501d43bbe9dcbbdc207d194370dd89062df138f81ca8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.14.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.8 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for healpy-1.14.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 af01605da940742f51002639ffbeface89e53d2d1022f9a76770194328e397ec
MD5 41dbb21a5d5270c0d09d1234e209d083
BLAKE2b-256 3966db489e95df3091afb79289680badac1def7f7b13090f0255c1b0c750b889

See more details on using hashes here.

File details

Details for the file healpy-1.14.0-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: healpy-1.14.0-cp37-cp37m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 7.2 MB
  • Tags: CPython 3.7m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for healpy-1.14.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 238012267fb5308d2106d783614ef07115c47d2cd8ab240c1cc09ff54d74b544
MD5 21684e0325146eac38268c525f284fba
BLAKE2b-256 2ef5fb8785dadf342201660b7d75b7aff4f9db6430eb802e3fc6c8202ccd894c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.14.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.8 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for healpy-1.14.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0e7e3c7b94dee682e39f8649d73001c8e4ed7d23c979aeabb92e568033f86b4f
MD5 edbd9046aa1068202c81f221d219be84
BLAKE2b-256 dd3056144086dc132b5bf5b271c62d045460db6c6a5a2bb68d3f7bde678a6727

See more details on using hashes here.

File details

Details for the file healpy-1.14.0-cp36-cp36m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: healpy-1.14.0-cp36-cp36m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 7.2 MB
  • Tags: CPython 3.6m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for healpy-1.14.0-cp36-cp36m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 98f3f26f9e6394242ec44b2ca1c4f0ca01bb10bb1ae6da0dd94346b7bfb95da1
MD5 8f322a52460164377959a26b050d0cdf
BLAKE2b-256 b67208ebf074e315ce03da4d19d6df1cd676027514b4ae86cd3127fdac55aa2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.14.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.7 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for healpy-1.14.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5a70770db2262cb32c54833843beb7b4a09048d8dd0a8a6a583da839b38810c3
MD5 568a98b6b03fa058490ae88b6b0ac672
BLAKE2b-256 bb8637da9988cd9afcdc5455e58d21398a36ac7f57e5f2ff05d46ae0f3bdc907

See more details on using hashes here.

File details

Details for the file healpy-1.14.0-cp35-cp35m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: healpy-1.14.0-cp35-cp35m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 7.2 MB
  • Tags: CPython 3.5m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for healpy-1.14.0-cp35-cp35m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 fac6e19209d4127fffbaa3a01bcb2c75097590c9baca2f4f320dad02a3c9522f
MD5 d76d64136039a63391c6601f937aa920
BLAKE2b-256 a9992e64a030aabd7faa25c69ddbe5de3553bfe94938c707adb46ee6dc6d10a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.14.0-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.8 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for healpy-1.14.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1cf3ef73743091d9c4179f6b4ef701c93a0d3b94d5acf0d43e6130400ba45769
MD5 68d0a860c8b912f712a40ca811c6b871
BLAKE2b-256 99d41c1b5cdaba6c9ff86f7fc8c0b6ce2b9ba61990ff6c9e2aa19a9371bbc090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.14.0-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 15.8 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9

File hashes

Hashes for healpy-1.14.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ba46358e094834b892e61fd2db0fca5df969d533691d9509fda40fd7784b48cd
MD5 0c6e7346cd45639b32d74f944784ed7d
BLAKE2b-256 3700fdf1b8675322a8ce81fdd6a0d680424e591551663b074ec00735b42a61c2

See more details on using hashes here.

File details

Details for the file healpy-1.14.0-cp27-cp27m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: healpy-1.14.0-cp27-cp27m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 7.4 MB
  • Tags: CPython 2.7m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.5

File hashes

Hashes for healpy-1.14.0-cp27-cp27m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c3c7a564364e6b92eea93ad239207ba6123802916948002068333d08d2d3812d
MD5 eafed4d8e9a0fdbff69591fb4e24f499
BLAKE2b-256 4b840c4ac05651d73382b84589b8b29445b4b2bd5fb76b7612fe2d31d1978a9a

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