geo2eci {astrolibR} | R Documentation |
Convert geographic spherical coordinates to Earth-centered inertial coordinates
geo2eci(incoord, jdtim)
incoord |
a 3-element vector of geographic coordinates [latitude, longitude, altitude], or an array [3,n] of n such coordinates, in degrees/degrees/km |
jdtim |
Julian Day time, in days, scalar or vector |
Converts from geographic spherical coordinates [latitude, longitude, altitude] to ECI (Earth-Centered Inertial) [X,Y,Z] rectangular coordinates. Geographic coordinates assume the Earth is a perfect sphere, with radius equal to its equatorial radius.
(x, y, z) |
a 3-element vector of ECI coordinates, or an array [3,n] of coordinates, in km from Earth center |
Written by Pascal Saint-Hilaire (ETH) on 2002/05/14
R adaptation by Arnab Chakraborty June 2013
# Obtain the ECI coordinates of the intersection of the equator and Greenwich's meridian # on 2002/03/09 21:21:21.021 # Returns: -3902.9606 5044.5548 0.0000 geo2eci(c(0,0,0), 2452343.38982663)