imap_processing.swapi.l1.swapi_l1.find_sweep_starts#

imap_processing.swapi.l1.swapi_l1.find_sweep_starts(packets: Dataset) ndarray[tuple[int, ...], dtype[_ScalarType_co]]#

Find index of where new cycle started.

Beginning of a sweep is marked by SWP_SCI.SEQ_NUMBER=0 (Sequence number of set of steps in energy sweep); end of a sweep is marked by SWP_SCI.SEQ_NUMBER=11; In this function, we look for index of SEQ_NUMBER 0.

Brandon Stone helped developed this algorithm.

Parameters:

packets (xarray.Dataset) – Dataset that contains SWP_SCI packets.

Returns:

indices_start – Array of indices of start cycle.

Return type:

numpy.ndarray