imap_processing.codice.decompress.decompress#

imap_processing.codice.decompress.decompress(compressed_binary: str, algorithm: IntEnum) list[int]#

Perform decompression on a binary string into a list of integers.

Apply the appropriate decompression algorithm(s) based on the value of the algorithm attribute. One or more individual algorithms may be applied to a given compressed value.

Parameters:
  • compressed_binary (str) – The compressed binary string.

  • algorithm (int) – The algorithm to apply. Supported algorithms are provided in the codice_utils.CoDICECompression class.

Returns:

decompressed_values – The 24- or 32-bit decompressed values.

Return type:

list[int]