imap_processing.glows.l1a.glows_l1a_data.DirectEventL1A#

class imap_processing.glows.l1a.glows_l1a_data.DirectEventL1A(level0: DirectEventL0)#

Data structure for GLOWS Histogram Level 1A data.

This includes steps for merging multiple Direct Event packets into one class, so this class may span multiple packets. This is determined by the SEQ and LEN, by each packet having an incremental SEQ until LEN number of packets.

Block header information is retrieved from l0: { “flight_software_version” = l0.ccsds_header.VERSION “ground_software_version” = __version__ “pkts_file_name” = l0.packet_file_name “seq_count_in_pkts_file” = l0.ccsds_header.SRC_SEQ_CTR }

Parameters:

level0 (DirectEventL0) – Level 0 data.

l0#

Level 0 data. In the case of multiple L0 direct events, this is the first L0 data class in the sequence. This is used to verify all events in the sequence match.

Type:

DirectEventL0

de_data#

Bytearray of raw DirectEvent data, which is converted into direct_events

Type:

bytearray

most_recent_seq#

The most recent sequence added to the L1A dataclass - for counting gaps

Type:

int

missing_seq#

Any missing sequence counts in the data. Should be an empty array in normal operation

Type:

list[int]

status_data#

StatusData generated from the first 40 bytes of direct events data. This includes information on flags and ancillary housekeeping info from the spacecraft.

Type:

StatusData

direct_events#

List of DirectEvent objects, which is created when the final level 0 packet in the sequence is added to de_data. Defaults to None.

Type:

list[DirectEvent]

merge_de_packets()#

Add another Level0 instance.

__init__(level0: DirectEventL0)#

Methods

__init__(level0)

merge_de_packets(second_l0)

Merge an additional direct event packet to this DirectEventL1A class.

Attributes