imap_processing.codice.utils.get_collapse_pattern_shape#

imap_processing.codice.utils.get_collapse_pattern_shape(json_data: dict, sensor_id: int, collapse_table_id: int) tuple[int, ...]#

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

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:

(<spin_sector, inst_azimuth>) describing the collapsed pattern. Examples: (1,) for a fully collapsed 1-D pattern or (N, M) for a reduced 2-D pattern.

Return type:

tuple[int, int]