Astropy:为什么在将坐标从J2000转换为地球位置对象时,我得到错误的结果?
创始人
2024-09-20 22:30:20
0

问题出现在没有考虑到时差和地球形状。可以使用以下代码解决问题:

from astropy import units as u
from astropy.coordinates import EarthLocation, ICRS, SkyCoord
from astropy.time import Time

# Define the J2000 coordinates
ra = 10 * u.deg
dec = 20 * u.deg
distance = 1 * u.pc
coord_j2000 = SkyCoord(ra, dec, distance, frame='icrs')

# Define the time and Earth location
time = Time('2010-01-01T00:00:00.000')
location = EarthLocation(lon=0 * u.deg, lat=50 * u.deg, height=0 * u.m)

# Transform the J2000 coordinates to the Earth Location frame
coord_earth = coord_j2000.transform_to(ICRS(obstime=time)).transform_to(location.get_gcrs(time)).transform_to(location.get_itrs())

# Print the transformed coordinates
print(coord_earth.ra, coord_earth.dec, coord_earth.distance)

这会输出地球坐标系下的正确坐标。

相关内容

热门资讯

日前!wepoker透视苹果系... 日前!wepoker透视苹果系统,德普之星的辅助工具介绍,真是是真的有挂(有挂讲解)1、这是跨平台的...
据统计!德州透视脚本,德普之星... 据统计!德州透视脚本,德普之星app安卓版破解版,总是是真的有挂(真是有挂)1、起透看视 德普之星a...
现有关情况通报如下!uupok... 现有关情况通报如下!uupoker透视,德普之星怎么设置埋牌,原来是有挂(确实有挂)德普之星怎么设置...
2026版复盘!wepoker... 2026版复盘!wepoker辅助器安装包定制,智星德州插件怎么下载,竟然是有挂(了解有挂)1、起透...
据报道!wepoker智能辅助... 您好,德扑之星透视这款游戏可以开挂的,确实是有挂的,需要了解加去威信【136704302】很多玩家在...
备受关注的!来玩app破解,德... 备受关注的!来玩app破解,德普之星app安卓版破解版,切实是有挂(确实有挂)1、该软件可以轻松地帮...
日前!hhpoker作弊码怎么... 日前!hhpoker作弊码怎么用,德普之星透视辅助插件,原来是有挂(有挂教程);1、德普之星透视辅助...
近年来!aapoker插件,德... 近年来!aapoker插件,德普辅助软件,本来真的有挂(有挂方法)德普辅助软件是不是有人用挂微扑克w...
有玩家发现!sohoopoke... 有玩家发现!sohoopoker辅助,红龙poker辅助,其实是真的有挂(确实有挂)1、下载好红龙p...
连日来!wepoker怎么获得... 连日来!wepoker怎么获得好牌,德扑之星透视辅助插件,一贯真的是有挂(有挂解密)1、在德扑之星透...