imap_processing.idex.idex_l1a.PacketParser#

class imap_processing.idex.idex_l1a.PacketParser(packet_file: str | Path, data_version: str)#

IDEX L1a packet parsing class.

Encapsulates the decom work needed to decom a daily file of IDEX L0 data received from the POC. The class is instantiated with a reference to a L0 file as it exists on the local file system.

Parameters:
  • packet_file (str) – The path and filename to the L0 file to read.

  • data_version (str) – The version of the data product being created.

Examples

from imap_processing.idex.idex_l1a import PacketParser
l0_file = "imap_processing/tests/idex/imap_idex_l0_sci_20230725_v001.pkts"
l1a_data = PacketParser(l0_file, data_version)
l1a_data.write_l1a_cdf()
__init__(packet_file: str | Path, data_version: str) None#

Read a L0 pkts file and perform all of the decom work.

Parameters:
  • packet_file (pathlib.Path | str) – The path and filename to the L0 file to read.

  • data_version (str) – The version of the data product being created.

Notes

Currently assumes one L0 file will generate exactly one L1a file.

Methods

__init__(packet_file, data_version)

Read a L0 pkts file and perform all of the decom work.