imap_processing.spice.spin.get_spin_number#

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

Get the spin number for the input query time.

The spin number is the index of the spin table row that contains the spin data for the input query time.

Parameters:

met_time (float or np.ndarray) – Query time in Mission Elapsed Time (MET).

Returns:

spin_number – Spin number for the input query time.

Return type:

int or np.ndarray