英文:
using unit vectors with `healpy`
问题
我有一个球面上的点集,它们只是在R3中表示为单位向量。我试图查看它们是否均匀分布,并为此目的我想进行球谐变换(使用healpy
,除非有更好的建议)。我不明白的是healpy
需要数据的格式是什么 - 文档似乎不太清楚。任何建议都将不胜感激。
英文:
I have a collection of points on the sphere, given as just unit vectors in R3. I am trying to see if they are equidistributed, and for this I want to do a spherical harmonic transform (using healpy
unless someone can suggest something better). What I can't understand is what format healpy
wants its data in - the documentation seems to be opaque. Any words of wisdom would be appreciated.
答案1
得分: 1
你可以查看有关将点映射到地图的教程:
在 https://healpy.readthedocs.io/en/latest/other_tutorials.html 上的 "将数据映射到HEALPix网格"。
但是,你可以使用 hp.vec2pix
,而不是 hp.ang2pix
。
一旦你有了地图,你可以使用 numpy
制作直方图,或者使用 hp.anafast
计算功率谱。
英文:
You can take a look at the tutorial on mapping points to a map:
"Map data to a HEALPix grid." at https://healpy.readthedocs.io/en/latest/other_tutorials.html
But instead of hp.ang2pix
, you can use hp.vec2pix
.
Once you have a map, you can take histograms with numpy
or power spectra with hp.anafast
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论