SpicePosition.position_light_time

giant.utilities.spice_interface:

SpicePosition.position_light_time(date)[source]

Make the call to spkpos given the stored settings at the input date returning both the position vector in kilometers and the light time in TDB seconds.

Specifically the call is

spiceypy.spkpos(self.target, datetime_to_et(date), self.reference_frame, self.corrections, self.observer)

where datetime_to_et() converts a datetime object into ephemeris (TDB) seconds since the J2000 epoch.

Parameters:

date (datetime) – The date we are querying spice at as a datetime object

Returns:

The relative position vector in kilometers and the one way light time between the observer and the target in TDB seconds as a tuple.

Return type:

Tuple[ndarray, float]