使用 astropy 从 ITRS 转换为 ICRS

Convert from ITRS to ICRS using astropy

请问是否可以使用 AstroPy 将 ITRS(International Terrestrial Reference System) 转换为 ICRS(International Celestial Reference System)?我已阅读文档并了解如何将 ICRS 转换为 ITRS,但不确定如何进行其他转换。

A​​stropy 中实现的所有转换都是双向的(例如,参见 the transform graph 可视化可能的转换)。所以,是的,可以从 ITRS 转换到 ICRS 框架。您必须通过指定兴趣点的笛卡尔坐标来创建 ITRS class 的实例。例如:

import astropy.coordinates as coord
import astropy.units as u
itrs = coord.ITRS(x=150*u.km, y=300*u.km, z=-210*u.km)

然后您可以转换为 ICRS 帧:

icrs = itrs.transform_to(coord.ICRS)