adam_core.orbits.spice_kernel module¶
- adam_core.orbits.spice_kernel.fit_chebyshev(coordinates: CartesianCoordinates, window_start: float, window_end: float, degree: int) tuple[ndarray, float, float][source]¶
Fit Chebyshev polynomials to position and velocity data.
- Parameters:
coordinates (CartesianCoordinates) – Coordinates to fit
window_start (float) – Start time in ET seconds
window_end (float) – End time in ET seconds
degree (int) – Degree of Chebyshev polynomials
- Returns:
(coefficients, mid_time, half_interval) coefficients has shape (6, degree+1)
- Return type:
- adam_core.orbits.spice_kernel.orbits_to_spk(orbits: Orbits, output_file: str, start_time: Timestamp, end_time: Timestamp, propagator: Propagator | None = None, max_processes: int | None = None, step_days: float = 0.25, target_id_start: int = 1000000, window_days: float = 32.0, comment: str = 'SPK file generated from adam_core Orbits', kernel_type: str = 'w03') Dict[str, int][source]¶
Convert Orbits object to a SPICE SPK file using Chebyshev polynomials (Type 3).