ADCS.helpers.animations.godot.derive module

ADCS.helpers.animations.godot.derive.derive_environment(ephem, jd_tt)[source]

Sun, Moon and Earth orientation at many epochs in one vectorized pass.

Uses the same Skyfield calls as Orbit, so the Sun vector matches Orbital_State.S: apparent geocentric position (light time and aberration applied) on GCRS axes.

Parameters:
  • ephem (DE421) – Ephemeris providing the kernel and timescale.

  • jd_tt (ndarray) – TT Julian dates, shape (N,).

Returns:

r_sun and r_moon in km (N, 3); R_itrs_gcrs (N, 3, 3) with v_itrs = R @ v_gcrs; q_itrs_gcrs (N, 4), the same rotation as a continuous scalar-first quaternion.

Return type:

Dict[str, ndarray]

ADCS.helpers.animations.godot.derive.j2000_to_jd_tt(j2000)[source]

Convert the framework’s time variable to a TT Julian date.

J2000 is Julian centuries of TT since J2000.0 (JD 2451545.0 TT), the same convention as j2000_to_tai().

Parameters:

j2000 (ndarray | float)

Return type:

ndarray | float