imap_processing.spice.spin.get_spacecraft_spin_phase#

imap_processing.spice.spin.get_spacecraft_spin_phase(query_met_times: float | ndarray[tuple[int, ...], dtype[_ScalarType_co]]) float | ndarray[tuple[int, ...], dtype[_ScalarType_co]]#

Get the spacecraft spin phase for the input query times.

Formula to calculate spin phase:

spin_phase = (query_met_times - spin_start_met) / spin_period_sec

Parameters:

query_met_times (float or np.ndarray) – Query times in Mission Elapsed Time (MET).

Returns:

spin_phase – Spin phase for the input query times.

Return type:

float or np.ndarray