imap_processing.hit.l0.hit_l1a_decom.group_apid_data#

imap_processing.hit.l0.hit_l1a_decom.group_apid_data(packets, apid)#

Create a dictionary of lists containing all the data for the APID.

If packets contain N of the same APIDs, the data for those N matching APIDs will be grouped together into a dictionary of lists.

Parameters:
  • packets (list) – List of all the unpacked data from decom.decom_packets()

  • apid (int) – APID number for the data you want to group together

Returns:

A dictionary where each field in the specified APID is a key, and the value for that key is a list of that fields values in all packets within the CCSDS file

Return type:

dict