imap_processing.lo.l0.science_direct_events.ScienceDirectEvents#

class imap_processing.lo.l0.science_direct_events.ScienceDirectEvents(packet, software_version: str, packet_file_name: str)#

L1A Science Direct Events data.

The Science Direct Events class handles the parsing and decompression of L0 to L1A data.

SHCOARSE#

Spacecraft time.

Type:

int

COUNT#

Number of direct events.

Type:

int

CHKSUM#

Checksum for the packet.

Type:

int

DATA#

Compressed TOF Direct Event time tagged data.

Type:

bitstring.Bits

TOF0#

Time of Flight 0 value for direct event.

Type:

int

TOF1#

Time of Flight 1 value for direct event.

Type:

int

TOF2#

Time of Flight 2 value for direct event.

Type:

int

TOF3#

Time of Flight 3 value for direct event.

Type:

int

TIME#

time tag for the direct event

Type:

int

ENERGY#

energy of the direct event ENA.

Type:

int

POS#

Stop position for the direct event. There are 4 quadrants on the at the stop position.

Type:

int

CKSM#

This is checksum defined relative to the TOFs condition for golden triples. If golden triples are below a certain threshold in checksum it’s considered golden, otherwise, it’s considered a silver triple. This is important for the compression for golden triples because it’s used to recover TOF1 because compression scheme to save space on golden triples doesn’t send down TOF1 so it’s recovered on the ground using the checksum

Type:

int

case_number#

The compression case number for the direct event. The case number determines how the bits are arranged in the compressed data.

Type:

int

tof_calculation_binary#

Binary used to determine which TOF coefficients should be used for decompressing the binary.

Type:

dict

tof_decoder#

Shows how the fields in the binary are split up by bit length and order.

Type:

list

remaining_bits#

The TOF coefficients that should be used for decompression

Type:

dict

parsed_bits#

The binary bits split up by TOF field.

Type:

dict

__init__(packet, software_vesion, packet_file_name):

Uses the CCSDS packet, version of the software, and the name of the packet file to parse and store information about the Direct Event packet data.

decompress_data():

Decompresses the Science Direct Event TOF data.

__init__(packet, software_version: str, packet_file_name: str)#

Intialization method for Science Direct Events Data class.

Methods

__init__(packet, software_version, ...)

Intialization method for Science Direct Events Data class.

parse_data(packet)

Parse Lo L0 packet data.

Attributes

SHCOARSE

COUNT

DATA

CHKSUM

TOF0

TOF1

TOF2

TOF3

TIME

ENERGY

POS

ground_sw_version

packet_file_name

ccsds_header