我有一组大于 10M 的大型对象,带有 RA 和偏角的文件。我想使用 healpix/healpy 制作这些的对数密度全天地图。我当前的代码如下所示:
m = hp.ang2pix(512, ra, dec, lonlat=True)
NSIDE = 512
np.arange(hp.nside2npix(NSIDE))
hp.visufunc.mollview(m)
我得到了错误:
ValueError: Wrong pixel number (it is not 12*nside**2)
我究竟做错了什么??
谢谢,尼克