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.

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]

pkts_file_name#

Name of the L0 CCSDS packets file used to generate this dataset

Type:

str

merge_de_packets()#

Add another Level0 instance.

finish_incomplete_packet()#
__init__(level0: DirectEventL0)#

Methods

__init__(level0)

finish_incomplete_packet()

Finish an incomplete packet.

merge_de_packets(second_l0)

Merge an additional direct event packet to this DirectEventL1A class.

Attributes