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 interpolated for each queried MET time. In addition to the columns output from
get_spin_data(), the sc_spin_phase column is added and is uniquely computed for each queried MET time.- Return type: