imap_processing.codice.codice_l1a.create_ialirt_dataset#

imap_processing.codice.codice_l1a.create_ialirt_dataset(apid: int, packets: Dataset) Dataset#

Create dataset for lo- and hi-ialirt data.

I-ALiRT data are packed identically to regular science data (lo-sw-species for CoDICE-lo, and hi-omni for CoDICE-hi), except for some slight differences in the metadata that are transmitted. Additionally, data are transmitted in separate, individual single-byte fields (there are 15 of these for CoDICE-lo and 6 for CoDICE-hi).

This function will process these I-ALiRT data while using some of the same code used for processing the lo-sw-species and hi-omni L1a data products.

Parameters:
  • apid (int) – The APID of the packet.

  • packets (xarray.Dataset) – The packets to process.

Returns:

dataset – Xarray dataset containing the direct event data.

Return type:

xarray.Dataset

References

See section 9.4 of the CoDICE algorithm document for further details.