Healpix tools package for Python
Project description
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
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:
HEALPix autotools-style C++ package
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:
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for healpy-1.12.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dab48ada397d84d2370c8194fcbd668d1d06e361593d160c9bda7f1c462078c7 |
|
MD5 | 6abef99bcaf39c9f39a3f897d94cfd22 |
|
BLAKE2b-256 | 75e3c4d7498a38bf0c81665dc01daca79c62d46dfe68cc2abbda4ea5c1000d10 |
Hashes for healpy-1.12.4-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 188c396bd8eb027d7de76eaa5541a5071ad072b6357971c0d2acf0f3bda24e9a |
|
MD5 | c4e3503371dcf0de3a2a72b57b88a53f |
|
BLAKE2b-256 | fd37fe4ba40e5f4b619db8b18bf7c64340ab353f4e346f58dab010f293224e0a |
Hashes for healpy-1.12.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2999f12408c07d964fa456aaf3504bf0ec79abe2bb5b0a29ceabb2f0c80fe23 |
|
MD5 | 9fa6196219b5570c9a964a47cab45a55 |
|
BLAKE2b-256 | 04b58c95cbea93098dd9b69766002dd1c5184031d560b58d048ed7421e01d68d |
Hashes for healpy-1.12.4-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51794a6eae8917cf5ea31ad1ef0b86e58de6b0281ae9cd88f1f5218f66d2030e |
|
MD5 | 2574c686c95e94c8ce5186befeb9ed34 |
|
BLAKE2b-256 | 4b837f3eb5eb75afd9ca7996ee2d910d503cdef7d66b411069bfeb8e8a492f86 |
Hashes for healpy-1.12.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91678269f69c5d763bfcfa85bb827d0c30bbe5cb1ca8a0a29b3cba629126f51f |
|
MD5 | ef2cf6faa67575d16dc12bcb247803cb |
|
BLAKE2b-256 | e78044f3181390bd9c031f776c8413be5d81d1f203ff7a0166966e2d233ca9c1 |
Hashes for healpy-1.12.4-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67b683ea3b809e42dfae3b178e52c57ebb7ee804265b94495f698987676c83b8 |
|
MD5 | 539fe8d2e32f4afb197e49b3ee2870b1 |
|
BLAKE2b-256 | fba37a376c3313e1282d750c16ecb202a64d2468983ffe3f8e9065e4b019ec9b |
Hashes for healpy-1.12.4-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b04007e9cbb02972cb5c855b99361106183c2b84675022439c944b3dd901e342 |
|
MD5 | 80ecadf3b8887c22cd21e40546e590e2 |
|
BLAKE2b-256 | 58188fb53d9b26151742365c7d3c62799da7414d21d2e9662c4a221b2a4aaceb |
Hashes for healpy-1.12.4-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2e33fb45d8239335746da755612e638b53e69abc173693872ae5e965f2b912 |
|
MD5 | 8ebc0ac15b2bf54706d95ebd9876bf61 |
|
BLAKE2b-256 | e3a509fddad65df610d382405cd2715cbbbb0af5e7f40b40ef381f397f0ed724 |
Hashes for healpy-1.12.4-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e6ce0bc7ef2ad89aed7753d1eb9831f2ea2b23926cf917b823f3670220f056 |
|
MD5 | b3af394f57d9846355a066f5d68f9166 |
|
BLAKE2b-256 | c0975dc2b72b36f0e7b28bd2ebac37df8beba30c41f72a5307d281bff00eb043 |
Hashes for healpy-1.12.4-cp27-cp27m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99bd04640e4f618df240c13168573998e92cd37caf2627ceebafb5eb604b3e2 |
|
MD5 | 95c4acbf36938739a451db9d42f9e8ee |
|
BLAKE2b-256 | f02826af9919b72ed7922774d9d23cbf88469dcd076b9ca5d1a20eab4b41da04 |