【发布时间】:2018-03-10 21:29:34
【问题描述】:
我编写了一个代码,使用 astropy 将坐标从地球固定系统转换为惯性系:
from astropy import coordinates as coord
from astropy import units as u
from astropy.time import Time
from astropy import time
now = Time('2018-03-14 23:48:00')
# position of satellite in GCRS or J20000 ECI:
xyz=[-6340.40130292,3070.61774516,684.52263588]
cartrep = coord.CartesianRepresentation(*xyz, unit=u.km)
gcrs = coord.ITRS(cartrep, obstime=now)
itrs = gcrs.transform_to(coord.GCRS(obstime=now))
loc= coord.EarthLocation(*itrs.cartesian.xyz)
print(loc)
如何对速度也进行转换?
【问题讨论】:
标签: coordinate-transformation astropy