imap_processing.spice.spin.get_spin_angle#

imap_processing.spice.spin.get_spin_angle(spin_phases: float | ndarray[tuple[int, ...], dtype[_ScalarType_co]], degrees: bool = False) float | ndarray[tuple[int, ...], dtype[_ScalarType_co]]#

Convert spin_phases to radians or degrees.

Parameters:
  • spin_phases (float or np.ndarray) – Instrument or spacecraft spin phases. Spin phase is a floating point number in the range [0, 1) corresponding to the spin angle / 360.

  • degrees (bool) – If degrees parameter is True, return angle in degrees otherwise return angle in radians. Default is False.

Returns:

spin_phases – Spin angle in degrees or radians for the input query times.

Return type:

float or np.ndarray