state_vector_from_geodetic_state#
- Ellipsoid.state_vector_from_geodetic_state(self, geostate: ndarray[GeodeticState_dtype]) tuple[ndarray[double], 2]#
Convert geodetic state(s) to Cartesian state vector(s).
Given an array of geodetic states (longitude, latitude, altitude, and their rates), this method computes the corresponding Cartesian position and velocity vectors in an Earth-centered frame.
- Parameters:
- geostatendarray of GeodeticState_dtype, shape (N,)
Structured array with fields:
- lonfloat
Geodetic longitude [radians].
- latfloat
Geodetic latitude [radians].
- altfloat
Geodetic altitude [meters].
- lon_dotfloat
Time derivative of longitude [radians/second].
- lat_dotfloat
Time derivative of latitude [radians/second].
- alt_dotfloat
Time derivative of altitude [meters/second].
- Returns:
- rndarray of shape (N, 3)
Position vectors in Cartesian coordinates [meters].
- vndarray of shape (N, 3)
Velocity vectors in Cartesian coordinates [meters/second].
Notes
The function processes each geodetic state entry to compute the corresponding position and velocity vectors.
Internally calls a Cython implementation for performance.
All angles are in radians.