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 the state vector of a target body.

Returns:

[x, y, z, vx, vy, vz] in meters and meters per second.

Return type:

np.ndarray

load_kernel(kernel_path: str) None[source]

Load a SPICE kernel such as .bsp, .tpc, or .tls.

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

Transform a state vector between reference frames.

utc_to_et(utc_str: str) float[source]

Convert a UTC string to ephemeris time.

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 the state vector of a target body.

Returns:

[x, y, z, vx, vy, vz] in meters and meters per second.

Return type:

np.ndarray

load_kernel(kernel_path: str) None[source]

Load a SPICE kernel such as .bsp, .tpc, or .tls.

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

Transform a state vector between reference frames.

utc_to_et(utc_str: str) float[source]

Convert a UTC string to ephemeris time.