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.13.0.tar.gz (4.6 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.13.0-cp38-cp38-manylinux1_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.8

healpy-1.13.0-cp38-cp38-macosx_10_14_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.8macOS 10.14+ x86-64

healpy-1.13.0-cp37-cp37m-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.7m

healpy-1.13.0-cp37-cp37m-macosx_10_14_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.7mmacOS 10.14+ x86-64

healpy-1.13.0-cp36-cp36m-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.6m

healpy-1.13.0-cp36-cp36m-macosx_10_14_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

healpy-1.13.0-cp35-cp35m-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.5m

healpy-1.13.0-cp35-cp35m-macosx_10_14_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.5mmacOS 10.14+ x86-64

healpy-1.13.0-cp34-cp34m-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 3.4m

healpy-1.13.0-cp27-cp27mu-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 2.7mu

healpy-1.13.0-cp27-cp27m-manylinux1_x86_64.whl (11.8 MB view details)

Uploaded CPython 2.7m

healpy-1.13.0-cp27-cp27m-macosx_10_14_x86_64.whl (5.3 MB view details)

Uploaded CPython 2.7mmacOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: healpy-1.13.0.tar.gz
  • Upload date:
  • Size: 4.6 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.13.0.tar.gz
Algorithm Hash digest
SHA256 d0ae02791c2404002a09c643e9e50bc58e3d258f702c736dc1f39ce1e6526f73
MD5 f7b055f9ce11faa827890bbcfb0663ba
BLAKE2b-256 26740c8592686027a8196e275cb81999e8aae88d0416c223fa55a7f0cb5bdd26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.9 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for healpy-1.13.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cbc5cc99bcb76cc0e9eacea1000709aa8ec9e5392e4797f43eabb2fc22012044
MD5 f9f0a355b05deff31f5792054f30c2bb
BLAKE2b-256 d0d3d612c853f8d1722f7fe22832fe8832b5659a5381debe25a2d00794194a53

See more details on using hashes here.

File details

Details for the file healpy-1.13.0-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: healpy-1.13.0-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.8, 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.6.0 requests-toolbelt/0.8.0 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for healpy-1.13.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 190ba766b97bb9acb8da2bfe14317a23f0f514f41a222af3ce8cf6c014f30c44
MD5 fb2cb45c6329a6d92e652ed32e8bb752
BLAKE2b-256 aa17e478a910acfe99c86977eeedfb895567278ea344885b2e66dec10565494f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 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.13.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a409b59bd3e5d222318fa4a3f52dd58fe40e037704304ecba49ded8a1ec522af
MD5 1e4e65b24f67e6112045d146337a8bf6
BLAKE2b-256 438501fb87b670aa34437eebc71e93212e73bb338565cfa134f6883061152840

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.3 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.6.0 requests-toolbelt/0.8.0 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for healpy-1.13.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 c6b5ae4ad061a4eedbb92a4c89c855b8f6fe9efba1accbf25e5d22cdb7fd6477
MD5 c568b8a10e4e755f1a1ddaa15ef6ca98
BLAKE2b-256 7f8c144ac28a028c14f88e5e4e35049b29ee0e7eec7dd8b2591615505543222c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 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.13.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f48c989bb7fe3eef472acf9bdf401629a72bc1f89023710a753f8ca636c332dc
MD5 81e461824e6e40b700cf93dcacf066f8
BLAKE2b-256 301804e88aff3d4cc6818465c0e397f8e87fb51403f65afc5c119f90c4932ba3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.3 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.6.0 requests-toolbelt/0.8.0 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for healpy-1.13.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 bb5c90be006ebe62e98e8fe125bd734d7cdf8ec2530f7e54d05a87712f9ebf4e
MD5 e9ba4e2aac4d1daf24d09880e62f22ae
BLAKE2b-256 1fa98a9b1598b32734f010d651b9ccfe5b0f5e9fd78294b79ea6e457d2e28914

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 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.13.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6946367fac0747f2f6a329e6cf7fb6cfd9c1df8dc998c68eb1d84ee85c08c87b
MD5 90e248704d94cb442fab69c47a843e33
BLAKE2b-256 9fd2db510dc6b9c3bda183bc3ab3a6ca0066e94c366de82713910d5627bee6e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp35-cp35m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.3 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.6.0 requests-toolbelt/0.8.0 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for healpy-1.13.0-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 bcbef9af7b71a8b757b11f04c2116d7c3f1e0e9f5567f2ff88a2f7bc4d21ede1
MD5 88857530790dde9dbc0d202d8f118221
BLAKE2b-256 9bc1b52ecfc491d9b57f37ff7cf668b259ecd16135a2bd9fe6712ebf4ed02bf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 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.13.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 217a97aaf9b84f31137040355d442895344971a21c73a593a8156038cecc17ab
MD5 cf0755dce865ebc4adc74b04ba8eb7a8
BLAKE2b-256 4ed2ce7118b8100a7bb6214cab2adf40a3a4a2dd800e028a68bc0513d4f6a8d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 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.13.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 05518207b9dd2021309bac13804c352427cd12eabb34b614f4bfef5e28646cd5
MD5 961bb83d92aec8d512fbe57f59ebc01a
BLAKE2b-256 b284674bdbf7c26a31f1fb15b5fa28998356194db373902afac2b5c58a854d30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.8 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.13.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3c0b0a3eb1ea5299444d26a3e600e6b162fc139804ede36dd26c260faee3e835
MD5 b95983e1c4188000042e6889d5863ca1
BLAKE2b-256 b507a52dd42a9d144933d27125980d203dad938443dd223cd64f47e93bf0556f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.13.0-cp27-cp27m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 5.3 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.6.0 requests-toolbelt/0.8.0 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for healpy-1.13.0-cp27-cp27m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ab3820dd7fb52a51fb666b204e6140be185ee90cbe09ff98de1aa9a7fff5bb8d
MD5 90fe9d27ca4a1adcf8f996d09d2503dc
BLAKE2b-256 74dc2656200a2d8d70afe04f0ecac36637f1b3a8571811a5b39ebf339241ee11

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