imap_processing.codice.codice_l1a.reshape_de_data#

imap_processing.codice.codice_l1a.reshape_de_data(packets: Dataset, decompressed_data: list[list[int]], num_priorities: 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>]].

  • num_priorities (int) – The number of priorities in the data product (differs between CoDICE-Lo and 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]