python - Gnomonic projection into 2-dim ndarray with healpy -


gnomview allows visualize gnomonic projection of spherical map. how can store projection in 2-dimensional numpy.ndarray? what's healpy's equivalent of map_out option of idl's gnomview?

this not supported in healpy, implemented it, can check development version of healpy 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 2d masked numpy array. available in next healpy version.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -