imap_processing.codice.utils#

Various classes and functions used throughout CoDICE processing.

This module contains utility classes and functions that are used by various other CoDICE processing modules.

Functions

apply_replacements_to_attrs(attrs, replacements)

Return a shallow-copied attrs dict with placeholders replaced.

calculate_acq_time_per_step(low_stepping_tab)

Calculate acquisition time per step from low stepping table.

get_codice_epoch_time(acq_start_seconds, ...)

Calculate center time and delta.

get_collapse_pattern_shape(json_data, ...)

Get the collapse pattern for a specific sensor id and collapse table id.

get_counters_aggregated_pattern(json_data, ...)

Return the aggregated counters pattern from the SCI-LUT JSON.

get_energy_info(energy_table)

Calculate energy bin centers and deltas from energy table.

get_view_tab_info(json_data, view_id, apid)

Get the view table information for a specific view and APID.

index_to_position(json_data, sensor_id, ...)

Get the indices of non-zero unique rows in the collapse pattern matrix.

read_sci_lut(file_path, table_id)

Read the SCI-LUT JSON file for a specific table ID.

Classes

CODICEAPID(value)

Create ENUM for CoDICE APIDs.

CoDICECompression(value)

Create ENUM for CoDICE compression algorithms.

SegmentedPacketOrder(value)

ENUM for segmented packet order.

ViewTabInfo(apid, collapse_table, ...)

Class to hold view table information.