this was not supported in healpy
, so I implemented it,
you can check the development version of healpy
from the github repository, then:
In [14]: hp.gnomview(np.arange(12), return_projected_map=True)
Out[14]:
masked_array(data =
[[ 4. 4. 4. ..., 4. 4. 4.]
[ 4. 4. 4. ..., 4. 4. 4.]
[ 4. 4. 4. ..., 4. 4. 4.]
...,
[ 4. 4. 4. ..., 4. 4. 4.]
[ 4. 4. 4. ..., 4. 4. 4.]
[ 4. 4. 4. ..., 4. 4. 4.]],
mask = False,
fill_value = -1.6375e+30)
the returned projected map is a 2d masked numpy array.
This will be available in the next healpy
version.