【问题标题】:Rotating a healpy(or healpix) map to an arbitrary direction将healpy(或healpix)贴图旋转到任意方向
【发布时间】:2021-03-04 04:13:09
【问题描述】:

我有一个 healpy 地图,其中包含一个以 Dec=0 度和 RA=0 度为中心的对象。现在我想将对象的位置移动到任意点,例如,Dec=20 度,RA=10 度。是否有一种简单而精确的旋转方式?我红色了 healpy 文档,但我仍然不清楚如何旋转地图。

假设我有一个数字数组map 代表一个healpy 地图。那你能推荐一些旋转的示例代码吗?

【问题讨论】:

    标签: healpy


    【解决方案1】:

    可以使用hp.Rotatorrotate_map_alms方法

    longitude = 10 * u.deg
    latitude = 20 * u.deg
    rot_custom = hp.Rotator(rot=[longitude.to_value(u.deg), latitude.to_value(u.deg)], inv=True)
    m_smoothed_rotated_alms = rot_custom.rotate_map_alms(m_smoothed)
    

    wrote a full tutorial on how to rotate maps with healpy基于此

    【讨论】:

      猜你喜欢
      • 2014-08-29
      • 1970-01-01
      • 2015-10-12
      • 1970-01-01
      • 1970-01-01
      • 2016-02-11
      • 1970-01-01
      • 2018-11-02
      • 1970-01-01
      相关资源
      最近更新 更多