Skip to main content

Healpix tools package for Python

Project description

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

Description

Healpy provides a python package to manipulate healpix maps. It is based on the standard numeric and visualisation tools for Python, Numpy and matplotlib.

To find more information about HEALPix, please visit its home page at http://healpix.sourceforge.net/.

The documentation can be found at https://healpy.readthedocs.io, tutorial at https://healpy.readthedocs.io/en/latest/tutorial.html.

Characteristics

  • pixelisation manipulation (ang2pix, pix2ang, etc.)

  • spherical harmonic transforms (map2alm, alm2map, synfast, anafast, etc. both for temperature and polarisation)

  • plotting capabilities (mollweide and gnomonic projection)

  • reading and writing of HEALPix FITS maps and alm

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

Uploaded CPython 3.7m

healpy-1.12.7-cp37-cp37m-manylinux1_i686.whl (11.8 MB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.14+ x86-64

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

Uploaded CPython 3.6m

healpy-1.12.7-cp36-cp36m-manylinux1_i686.whl (11.8 MB view details)

Uploaded CPython 3.6m

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

Uploaded CPython 3.6mmacOS 10.14+ x86-64

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

Uploaded CPython 3.5m

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

Uploaded CPython 3.5mmacOS 10.14+ x86-64

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

Uploaded CPython 3.4m

healpy-1.12.7-cp34-cp34m-manylinux1_i686.whl (11.8 MB view details)

Uploaded CPython 3.4m

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

Uploaded CPython 2.7mu

healpy-1.12.7-cp27-cp27mu-manylinux1_i686.whl (11.8 MB view details)

Uploaded CPython 2.7mu

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

Uploaded CPython 2.7m

healpy-1.12.7-cp27-cp27m-manylinux1_i686.whl (11.8 MB view details)

Uploaded CPython 2.7m

healpy-1.12.7-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.7.tar.gz.

File metadata

  • Download URL: healpy-1.12.7.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.7.tar.gz
Algorithm Hash digest
SHA256 17bdf657ee94c70c91308ddac7bcc327bd96f66610f622e7e03e5635167a6538
MD5 84dcc18f1ceceb94cfbb7bf20b64e623
BLAKE2b-256 e07306e680e51e2f2aff1f858444db9011ac482775dc8b6e5d7a959a2de4c2dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e586204bbfb12a539b0b0a393d4292c67b15178910342b4394eedcb5d26212cc
MD5 8d8630ccf806700d79f9c64f17c1d9af
BLAKE2b-256 265c268fc88b68eb0abb193c4d12f71c04485f6f12b40e26dea94b3cb8266313

See more details on using hashes here.

File details

Details for the file healpy-1.12.7-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.12.7-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 938602986667b436d2dc82b596bc86b67a3b8c418e1dcffc99ef2413e0373586
MD5 0f93cebecfa11ac57e0998111564fb01
BLAKE2b-256 ea3332ef55a019534fbfb11746b7e1e8434d26b860c79ce638ef7bdd070ab7c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b74fad19d000f20a49c2797b5212e699cdd510794ac66857a90ffc1d2226e180
MD5 371f761038108c6f58656d94c6cdf9d1
BLAKE2b-256 b7fcce13f9ee90157a51e533e0164d4c97c7b3d3d3224dec9a1538eecfc424f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8d47ab0b2ddfafc990e8f9cf02f5d291bae741daebedb266bbc3f153b3255a6c
MD5 557152ad19b389d14598879073712f0f
BLAKE2b-256 dde05044c701cd282f581e81b4043089d32b158270f248c57c589285856b760e

See more details on using hashes here.

File details

Details for the file healpy-1.12.7-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.12.7-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 38bd4bd91e69058c79743c798be1d4e19e8a0185630ebad9d2ce5b9585e16944
MD5 9e6ebedc87548a6ec4655d1b320d2ab5
BLAKE2b-256 126b08813b4767dfdf0de9305363621de4f57df1aff69118c7da7f8a8d50ce8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 cb96fdc09cc4c2a1cca1aebdd79286b1a65c3a7e09fe4e064d5686142da59f89
MD5 0d6d7cbda850d05178f11eea196405b3
BLAKE2b-256 9b4efb52e9e9e1aa7bec1fe5be94ef566cf6bdc3edd5ee0dd2bcf0e5d7dee493

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6f16b0c588bcf216c32e83fa819b0655db7fe5dccd38959f1244cabbdf226638
MD5 3f980e03fde01317acff328c03917e67
BLAKE2b-256 fafb9d96a3b47b1477fd1f70333436d320ae7d33a0e0b939dd3cd622f54fb050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp35-cp35m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 8facaa9401dc1a1c98204db56798e4c0d180ef5d640bfdead34afa60cb53989a
MD5 9783f32fd4cb8b352ea839523731e786
BLAKE2b-256 e9467ad9442fd89a7f85e43600c3812240ebf0d59e02b304865d9f7c9f8b26f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 df028563a09dc9c076937807228d4a8a77768c3b6214591141efaffc96c8847c
MD5 da636f3fc1984a43325b7906ac8a485d
BLAKE2b-256 33de14b4e78f6d40bc161743ec1ffe30a7087d428a7bc6f2006506a0dd552def

See more details on using hashes here.

File details

Details for the file healpy-1.12.7-cp34-cp34m-manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.12.7-cp34-cp34m-manylinux1_i686.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 87ca65dc2e56f6de285e454375d0052c1bfcd2add4fd3e252ff9c7f5bf0f7af6
MD5 ea2299aab1dcc4ca48f7ee3c24f7851e
BLAKE2b-256 5f1c87722febc745d2ef5631ab71c51926d0ad49103506b48870f5d3ec88dc91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c241bc5eaa578777011e0ae8048a62777e7a4bcb79fa5a98920f46cff7916f6b
MD5 1f328512e1d9a2d00ffc548483f6863d
BLAKE2b-256 65efe18f13b9f968a9a1703b2b35a1062c7d44133dc2e55ed16e6e5581544ea1

See more details on using hashes here.

File details

Details for the file healpy-1.12.7-cp27-cp27mu-manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.12.7-cp27-cp27mu-manylinux1_i686.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 3ff6bdb2560ed6394056d30f99e88ce11cb4f6bbe782ddd929fde30f8dbea672
MD5 1b8088dbcef6dea87b29d3cc9e4d29ed
BLAKE2b-256 87d337b9bcbbbead334f4c6d8e10ba7c0c9a2e0788b2bd1dd0913f1f33174d41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f53312da4bfa27309b7d9de176cd043d49686bf2ca9fb35488b82b19ca39e07d
MD5 21dd51ffe6f9644ce6197a993a5b4254
BLAKE2b-256 2aa26ee6f1071ffe4e725fbc69f1230390f9343e7e6731b4b852b62cec1a4ddf

See more details on using hashes here.

File details

Details for the file healpy-1.12.7-cp27-cp27m-manylinux1_i686.whl.

File metadata

  • Download URL: healpy-1.12.7-cp27-cp27m-manylinux1_i686.whl
  • Upload date:
  • Size: 11.8 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 cf5833c4417b2fbb75dac1582c5f390518e175aefadc4d1bca445d27acf5a02c
MD5 825408096de679bd3d460cabd6c865ba
BLAKE2b-256 b3033261b11b37baeeddbf3bc872dd0f8a87f0bc8b8232620a31752a102ad20e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.7-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.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.7-cp27-cp27m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ab5a0c4b8a514b3e9b24621eb81f5df6c65715ca681079c6a0e4fe64de9c054e
MD5 322a9d1bf8cb84170891adf743c31b87
BLAKE2b-256 cb1ed1ca116666e4c97323feffd59b4ae89ce1530f5871061bd198550bb88ffc

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