imap_processing.codice.codice_l1a.reshape_de_data#

imap_processing.codice.codice_l1a.reshape_de_data(packets: Dataset, decompressed_data: list[list[int]], apid: int) dict[str, ndarray]#

Reshape the decompressed direct event data into CDF-ready arrays.

Parameters:
  • packets (xarray.Dataset) – Dataset containing the packets, needed to determine priority order and data quality.

  • decompressed_data (list[list[int]]) – The decompressed data to reshape, in the format <epoch>[<priority>[<event>]].

  • apid (int) – The APID of the packet, used primarily to determine if the data are from CoDICE-Lo or CoDICE-Hi.

Returns:

data – The reshaped, CDF-ready arrays. The keys of the dictionary represent the CDF variable names, and the values represent the data.

Return type:

dict[str, numpy.ndarray]