Questions tagged [healpy]

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

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

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

147 questions
2
votes
1 answer

Pattern recognition on sphere (HEALPY based)

I am using Tensorflow and Keras. Is there a possibility to achieve a proper pattern recognition for images on the surface of a sphere? I am using the (Healpy framework) to create my skymaps on which the pattern recognition should work. The problem…
2
votes
1 answer

Healpy installation Python 3.4 on Windows

When I try to install Healpy with the command "pyp install healpy" this is the error message: File "c:\python34\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsall raise ValueError(str(list(result.keys()))) ValueError:…
Raizen
  • 99
  • 2
  • 10
2
votes
1 answer

Healpy map2alm and alm2map errors

I'm studying healpy. Specifically I am interested in map2alm and alm2map: I found question where example of applying the functions "to both sides" (in answer) is provided. As we can see, we get significant errors in comparison with the original map…
Oiale
  • 434
  • 4
  • 17
2
votes
1 answer

How can I partially plot a Healpix map using Healpy?

When working with healpy, I am able to plot a Healpix map in Mollview using import healpy map = 'filename.fits' healpy.visufunc.mollview(map) or as in the tutorial >>> import numpy as np >>> import healpy as hp >>> NSIDE = 32 >>> m =…
EB2127
  • 1,788
  • 3
  • 22
  • 43
2
votes
1 answer

Producing E and B mode maps using CAMB and Healpy

I have been trying to make E and B mode maps using CAMB and healpy, however what I have produced so far doesn't really look like much. I am using CAMB to produce simulated maps at the following…
Ari Kaplan
  • 75
  • 1
  • 4
2
votes
1 answer

Smoothing HEALPix maps with `healpy`: Why does the output map appear "patchy"?

I have a HEALPix all-sky map, from the AKARI Far Infrared Surveyor databse (publicly released). I have tried to "smooth" the map using healpy, but the result looks very strange. Is there a better way? My question however relates to any all-sky…
Aaron Bell
  • 51
  • 5
2
votes
0 answers

Healpy: cut n by n pix submaps

I have a healpy full-sky map, and need to chose some sky patches centered around given pixels. hp.query_disc finds the pixels within a given disc, which is nice. But I would like to be able to add/subtract on different sky patches, and so the fact…
2
votes
2 answers

Healpy map2alm function does not return expected number of alm values

healpy.map2alm computes an array of alm values for an input Healpix map. The function is healpy.sphtfunc.map2alm(maps, lmax=None, mmax=None, iter=3, pol=True, use_weights=False, regression=True, datapath=None)` The parameter lmax determines the…
JianguoHisiang
  • 609
  • 2
  • 7
  • 17
2
votes
2 answers

Healpy pix2ang: Convert from HEALPix index to RA,Dec or glong,glat

I am new to HEALPix and fairly new to Python as well. I try to use healpy to convert a HEALPix index to RA,Dec. I get that I have to use pix2ang, but cannot figure how to convert the output theta,phi into RA,Dec... I tried this: import healpy as…
HBouy
  • 245
  • 3
  • 14
2
votes
1 answer

Healpy map2alm and alm2map inconsistency?

I'm just starting to work with Healpy and have noticed that if I use a map to get alm's and then use those alm's to generate a new map, I do not get the map I started with. Here's what I'm looking at: import numpy as np import healpy as hp nside =…
2
votes
1 answer

Custom colorbar in healpy mollview

I am trying to replace the colorbar given by "hp.mollview" with a custom one. In particular I am interested in: Rotating the colorbar by 90 degrees (i.e. replacing the horizontal by a vertical one) Using two labels (left and right of the…
user1834164
  • 377
  • 3
  • 13
2
votes
1 answer

Adding Axes in Cartview using Healpy

I've created a zoomed-in image using the following code: map = hp.read_map(filename) hp.cartview(map, title=t,lonra = [-50,50], latra = [-70,-45],\ max = 1, min = -1, unit = 'mk') hp.graticule() plt.show() How can I add an axis to the…
bluebird343
  • 133
  • 3
  • 10
2
votes
1 answer

change the colorbar in healpy.mollview?

I know that matplotlib provides many different color bars, and so I wonder if I can replace the default color bar in healpy.mollview with one from matplotlib? In other words, I need to change the color bar in healpy.mollview for some special…
2
votes
1 answer

Gnomonic projection into 2-dim ndarray with healpy

Gnomview allows to visualize the gnomonic projection of a spherical map. How can I store the projection in a 2-dimensional numpy.ndarray? What's the healpy's equivalent of the map_out option of IDL's gnomview?
dPol
  • 455
  • 4
  • 14
2
votes
3 answers

Changing fontsize of colorbar labels in healpy.mollview()

I'm using healpy's mollview() function (http://healpy.github.com/healpy/generated/healpy.visufunc.mollview.html) to plot a map. I can specify a title and label for the colorbar, but I don't see how I can change the font size. Sorry if this isn't the…
user1475412
  • 1,659
  • 2
  • 22
  • 30
1 2
3
9 10