imap_processing.glows.l1a.glows_l1a_data.StatusData#

class imap_processing.glows.l1a.glows_l1a_data.StatusData(general_data_subset: bytearray)#

Data structure for GLOWS status data, also known as “data_every_second”.

This is used to generate the housekeeping info for each direct event from the compressed structure in the first 40 bytes of each direct event data field.

Each DirectEventL1A instance covers one second of direct events data. Each second has metadata associated with it, which is described in this class. The first 40 bytes of each direct event grouping is used to create this class. A second of direct events data may span multiple packets, but each second only has one set of StatusData attributes.

Attributes must match byte_attribute_mapping in generate_status_data.

Parameters:

general_data_subset (bytearray) – 40 bytes containing the information for general data (data_every_second).

imap_sclk_last_pps#

IMAP seconds for last PPS

Type:

int

glows_sclk_last_pps#

GLOWS seconds for last PPS

Type:

int

glows_ssclk_last_pps#

GLOWS subseconds for last PPS

Type:

int

imap_sclk_next_pps#

IMAP seconds for next PPS

Type:

int

catbed_heater_active#

Flag - heater active

Type:

int

spin_period_valid#

Flag - spin phase valid

Type:

int

spin_phase_at_next_pps_valid#

Flag - spin phase at next PPS valid

Type:

int

spin_period_source#

Flag - Spin period source

Type:

int

spin_period#

Uint encoded spin period value

Type:

int

spin_phase_at_next_pps#

Uint encoded next spin phase value

Type:

int

number_of_completed_spins#

Number of spins, from onboard

Type:

int

filter_temperature#

Uint encoded temperature

Type:

int

hv_voltage#

Uint encoded voltage

Type:

int

glows_time_on_pps_valid#

Flag - is glows time valid

Type:

int

time_status_valid#

Flag - valid time status

Type:

int

housekeeping_valid#

Flag - valid housekeeping

Type:

int

is_pps_autogenerated#

Flag

Type:

int

hv_test_in_progress#

Flag

Type:

int

pulse_test_in_progress#

Flag

Type:

int

memory_error_detected#

Flag

Type:

int

__init__(general_data_subset: bytearray)#

Generate the flag and encoded information from 40 bytes of direct event data.

The 40 bytes also includes one extra byte of padding at the end.

Methods

__init__(general_data_subset)

Generate the flag and encoded information from 40 bytes of direct event data.

Attributes