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

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

Uploaded CPython 3.7m

healpy-1.12.4-cp37-cp37m-macosx_10_13_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

healpy-1.12.4-cp36-cp36m-manylinux1_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.6m

healpy-1.12.4-cp36-cp36m-macosx_10_13_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

healpy-1.12.4-cp35-cp35m-manylinux1_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.5m

healpy-1.12.4-cp35-cp35m-macosx_10_13_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.5mmacOS 10.13+ x86-64

healpy-1.12.4-cp34-cp34m-manylinux1_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.4m

healpy-1.12.4-cp27-cp27mu-manylinux1_x86_64.whl (13.6 MB view details)

Uploaded CPython 2.7mu

healpy-1.12.4-cp27-cp27m-manylinux1_x86_64.whl (13.6 MB view details)

Uploaded CPython 2.7m

healpy-1.12.4-cp27-cp27m-macosx_10_13_x86_64.whl (7.9 MB view details)

Uploaded CPython 2.7mmacOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: healpy-1.12.4.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/38.5.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.0

File hashes

Hashes for healpy-1.12.4.tar.gz
Algorithm Hash digest
SHA256 dff1748b420065290a12ae87ca80f18df8ceefc65563315fc2667a67604a2b70
MD5 b20a3c35beaff37af4bc85766bc76944
BLAKE2b-256 39450e00ed0298e6dfb2ee04f80cd17ba9efa0c05fdc7b1afd98b22889f6c93e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.6 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 dab48ada397d84d2370c8194fcbd668d1d06e361593d160c9bda7f1c462078c7
MD5 6abef99bcaf39c9f39a3f897d94cfd22
BLAKE2b-256 75e3c4d7498a38bf0c81665dc01daca79c62d46dfe68cc2abbda4ea5c1000d10

See more details on using hashes here.

File details

Details for the file healpy-1.12.4-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.4-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 7.0 MB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 188c396bd8eb027d7de76eaa5541a5071ad072b6357971c0d2acf0f3bda24e9a
MD5 c4e3503371dcf0de3a2a72b57b88a53f
BLAKE2b-256 fd37fe4ba40e5f4b619db8b18bf7c64340ab353f4e346f58dab010f293224e0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.4-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.6 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c2999f12408c07d964fa456aaf3504bf0ec79abe2bb5b0a29ceabb2f0c80fe23
MD5 9fa6196219b5570c9a964a47cab45a55
BLAKE2b-256 04b58c95cbea93098dd9b69766002dd1c5184031d560b58d048ed7421e01d68d

See more details on using hashes here.

File details

Details for the file healpy-1.12.4-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.4-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 7.0 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 51794a6eae8917cf5ea31ad1ef0b86e58de6b0281ae9cd88f1f5218f66d2030e
MD5 2574c686c95e94c8ce5186befeb9ed34
BLAKE2b-256 4b837f3eb5eb75afd9ca7996ee2d910d503cdef7d66b411069bfeb8e8a492f86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.4-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.6 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 91678269f69c5d763bfcfa85bb827d0c30bbe5cb1ca8a0a29b3cba629126f51f
MD5 ef2cf6faa67575d16dc12bcb247803cb
BLAKE2b-256 e78044f3181390bd9c031f776c8413be5d81d1f203ff7a0166966e2d233ca9c1

See more details on using hashes here.

File details

Details for the file healpy-1.12.4-cp35-cp35m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.4-cp35-cp35m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 7.0 MB
  • Tags: CPython 3.5m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 67b683ea3b809e42dfae3b178e52c57ebb7ee804265b94495f698987676c83b8
MD5 539fe8d2e32f4afb197e49b3ee2870b1
BLAKE2b-256 fba37a376c3313e1282d750c16ecb202a64d2468983ffe3f8e9065e4b019ec9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.4-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.6 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b04007e9cbb02972cb5c855b99361106183c2b84675022439c944b3dd901e342
MD5 80ecadf3b8887c22cd21e40546e590e2
BLAKE2b-256 58188fb53d9b26151742365c7d3c62799da7414d21d2e9662c4a221b2a4aaceb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.4-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.6 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7b2e33fb45d8239335746da755612e638b53e69abc173693872ae5e965f2b912
MD5 8ebc0ac15b2bf54706d95ebd9876bf61
BLAKE2b-256 e3a509fddad65df610d382405cd2715cbbbb0af5e7f40b40ef381f397f0ed724

See more details on using hashes here.

File details

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

File metadata

  • Download URL: healpy-1.12.4-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.6 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 00e6ce0bc7ef2ad89aed7753d1eb9831f2ea2b23926cf917b823f3670220f056
MD5 b3af394f57d9846355a066f5d68f9166
BLAKE2b-256 c0975dc2b72b36f0e7b28bd2ebac37df8beba30c41f72a5307d281bff00eb043

See more details on using hashes here.

File details

Details for the file healpy-1.12.4-cp27-cp27m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: healpy-1.12.4-cp27-cp27m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 7.9 MB
  • Tags: CPython 2.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for healpy-1.12.4-cp27-cp27m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f99bd04640e4f618df240c13168573998e92cd37caf2627ceebafb5eb604b3e2
MD5 95c4acbf36938739a451db9d42f9e8ee
BLAKE2b-256 f02826af9919b72ed7922774d9d23cbf88469dcd076b9ca5d1a20eab4b41da04

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