opengnc.interfaces.spice package

Submodules

opengnc.interfaces.spice.spice_manager module

SPICE Kernel and Frame management for STK/SPICE interoperability.

class opengnc.interfaces.spice.spice_manager.SpiceManager[source]

Bases: object

Standardized interface for SPICE kernels and frame transformations. Wraps SpiceyPy to provide STK-compatible environment modeling.

clear_kernels() None[source]

Unload all kernels.

get_state(target: str, et: float, frame: str = 'J2000', observer: str = 'EARTH') ndarray[source]

Get state vector of a target body.

Returns:

[x, y, z, vx, vy, vz] in meters and m/s.

Return type:

np.ndarray

load_kernel(kernel_path: str) None[source]

Load a SPICE kernel (.bsp, .tpc, .tls, etc.).

transform_state(state: ndarray, et: float, from_frame: str, to_frame: str) ndarray[source]

Transform state vector between frames.

utc_to_et(utc_str: str) float[source]

Convert UTC string to Ephemeris Time (ET).

Module contents

SPICE and STK interoperability.

class opengnc.interfaces.spice.SpiceManager[source]

Bases: object

Standardized interface for SPICE kernels and frame transformations. Wraps SpiceyPy to provide STK-compatible environment modeling.

clear_kernels() None[source]

Unload all kernels.

get_state(target: str, et: float, frame: str = 'J2000', observer: str = 'EARTH') ndarray[source]

Get state vector of a target body.

Returns:

[x, y, z, vx, vy, vz] in meters and m/s.

Return type:

np.ndarray

load_kernel(kernel_path: str) None[source]

Load a SPICE kernel (.bsp, .tpc, .tls, etc.).

transform_state(state: ndarray, et: float, from_frame: str, to_frame: str) ndarray[source]

Transform state vector between frames.

utc_to_et(utc_str: str) float[source]

Convert UTC string to Ephemeris Time (ET).