imap_processing.codice.utils.index_to_position#

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

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

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:

Array of indices corresponding to non-zero unique rows.

Return type:

np.ndarray