libera_utils.packets.parse_packets#

libera_utils.packets.parse_packets(packet_parser: PacketParser, packet_data_filepaths: list, apid: int = None)#

Parse a recarray from a list of packet filepaths, assuming the same parser for all

Parameters:
  • packet_parser (space_packet_parser.parser.PacketParser) – Parser, already initialized with the anticipated definition.

  • packet_data_filepaths (list) – List of filepaths to packets files.

  • apid (int) – Filter on APID so we don’t get mismatches in case the parser finds multiple parsable packet definitions in the files. This can happen if the XTCE document contains definitions for multiple packet types and >1 of those packet types is present in the packet data files.

Returns:

Concatenated arrays of packet data.

Return type:

numpy.recarray