imap_processing.spice.spin.get_instrument_spin_phase#
- imap_processing.spice.spin.get_instrument_spin_phase(query_met_times: float | ndarray[tuple[int, ...], dtype[_ScalarType_co]], instrument: SpiceFrame) float | ndarray[tuple[int, ...], dtype[_ScalarType_co]]#
Get the instrument spin phase for the input query times.
- Formula to calculate spin phase:
instrument_spin_phase = (spacecraft_spin_phase + instrument_spin_offset) % 1
- Parameters:
query_met_times (float or np.ndarray) – Query times in Mission Elapsed Time (MET).
instrument (SpiceFrame) – Instrument frame to calculate spin phase for.
- Returns:
spin_phase – Instrument spin phase for the input query times. Spin phase is a floating point number in the range [0, 1) corresponding to the spin angle / 360.
- Return type:
float or np.ndarray