imap_processing.spice.spin.interpolate_spin_data#
- imap_processing.spice.spin.interpolate_spin_data(query_met_times: float | ndarray[tuple[int, ...], dtype[_ScalarType_co]]) DataFrame#
Interpolate spin table data to the queried MET times.
All columns in the spin table csv file are interpolated to the previous table entry. A sc_spin_phase column is added that is the computed spacecraft spin phase at the queried MET times. Note that spin phase is by definition, in the interval [0, 1) where 1 is equivalent to 360 degrees.
- Parameters:
query_met_times (float or np.ndarray) – Query times in Mission Elapsed Time (MET).
- Returns:
spin_df – Spin table data with the spin-phase column added and one row interpolated for each queried MET time. Output columns are: * spin_number * spin_start_sec * spin_start_subsec * spin_period_sec * spin_period_valid * spin_phase_valid * spin_period_source * thruster_firing * spin_start_met * sc_spin_phase
- Return type: