CelestialBody#
- class spacekernel.bodies.CelestialBody(Time time)#
Bases:
objectRepresent a celestial body with position and velocity in the Geocentric Celestial Reference Frame (GCRF) at a given epoch.
- Parameters:
- timeTime
Epoch at which to evaluate or load the body’s state vectors.
- Attributes:
CelestialBody.r_GCRF: ndarray[double] Position vector in GCRF coordinates (meters). |
|
CelestialBody.v_GCRF: ndarray[double] Velocity vector in GCRF coordinates (meters per second). |
|
CelestialBody.ur_GCRF: ndarray[double] Unit position direction vector in GCRF. |
- CelestialBody.r_GCRF#
CelestialBody.r_GCRF: ndarray[double] Position vector in GCRF coordinates (meters).
- Returns:
- ndarray shape (N,3)
Cartesian position [x, y, z] in meters (GCRF frame) at the stored epoch.
- CelestialBody.v_GCRF#
CelestialBody.v_GCRF: ndarray[double] Velocity vector in GCRF coordinates (meters per second).
- Returns:
- ndarray shape (N,3)
Cartesian velocity [vx, vy, vz] in meters per second (GCRF frame) at the stored epoch.
- CelestialBody.ur_GCRF#
CelestialBody.ur_GCRF: ndarray[double] Unit position direction vector in GCRF.
- Returns:
- ndarray shape (N,3)
Unit vector parallel to r_GCRF, i.e., r_GCRF / ‖r_GCRF‖.