imap_processing.mag.l1a.mag_l1a.process_packets#

imap_processing.mag.l1a.mag_l1a.process_packets(mag_l0_list: list[MagL0]) dict[str, MagL1a | None]#

Given a list of MagL0 packets, process them into MagO and MagI L1A data classes.

This splits the MagL0 packets into MagO and MagI data, returning a dictionary with keys “mago” and “magi.”

Parameters:

mag_l0_list (list[MagL0]) – List of Mag L0 packets to process.

Returns:

packet_dict

Dictionary containing two keys: “mago” which points to a dictionary of mago

MagL1A objects, and “magi” which points to a dictionary of magi MagL1A objects. Each dictionary has keys of days and values of MagL1A objects, so each day corresponds to one MagL1A object.

Return type:

dict[str, MagL1a | None]