imap_processing.idex.idex_l0.decom_packets#

imap_processing.idex.idex_l0.decom_packets(packet_file: str | Path) tuple[list[Any], dict[int, Dataset], dict[int, Dataset]]#

Decom IDEX data packets using IDEX packet definition.

Parameters:

packet_file (pathlib.Path | str) – String to data packet path with filename.

Returns:

Returns a list of all unpacked science data and a dictionary of datasets indexed by their APIDs, one for raw and derived values.

Return type:

Tuple[list, dict]

Notes

The function ‘packet_file_to_dataset’ does not work with IDEX science packets due to branching logic within the science xml file. The science data and housekeeping data will be decommed separately and both returned from this function.