使用 `healpy` 的单位向量。

huangapple go评论46阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年3月4日 01:29:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/75630173.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定