You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
436 B
Python

from numpy.core.arrayprint import DatetimeFormat
import pymap3d.ecef
import pymap3d.eci
import pymap3d.aer
import pymap3d.ellipsoid
from datetime import datetime
obs = (13.0344804066577, 77.5111003779841, 839.009756775573)
aer = (123.08, 50.06, 37350340.0)
wgs84 = pymap3d.ellipsoid.Ellipsoid()
x,y,z = pymap3d.aer.aer2ecef(*aer,*obs, wgs84)
print(x,y,z)
x,y,z = pymap3d.eci.ecef2eci(x,y,z,time=datetime(1999,4,2,3,0,0))
print(x,y,z)