imap_processing.swapi.l1.swapi_l1.get_indices_of_full_sweep#
- imap_processing.swapi.l1.swapi_l1.get_indices_of_full_sweep(packets: Dataset) ndarray[tuple[int, ...], dtype[_ScalarType_co]]#
Get indices of full cycles.
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; all packets must be present to process a sweep.
In this function, we get the indices of SEQ_NUMBER 0 and then construct full sweep indices.
- Parameters:
packets (xarray.Dataset) – Dataset that contains SEQ_NUMBER data information. Eg. sci_dataset[“SEQ_NUMBER”].data.
- Returns:
full_cycle_indices – 1D array with indices of full cycle data.
- Return type: