imap_processing.codice.utils.get_counters_aggregated_pattern#

imap_processing.codice.utils.get_counters_aggregated_pattern(json_data: dict, sensor_id: int, collapse_table_id: int) dict#

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

The counters aggregated pattern is stored as {key: list} in the SCI-LUT JSON. Each variable can be turned on and off in-flight. Because of that, we need to be flexible. If any variable is turned off, its corresponding row in the matrix will be all zeros and fill CDF variable for that row with zeros.

Parameters:
  • json_data (dict) – The JSON data loaded from the SCI-LUT file.

  • sensor_id (int) – Sensor identifier (0 for LO, 1 for HI).

  • collapse_table_id (int) – Collapse table id to look up in the SCI-LUT.

Returns:

The counters key and its corresponding collapse pattern.

Return type:

dict