imap_processing.idex.decode.rice_decode#

imap_processing.idex.decode.rice_decode(compressed_data: str, nbit10: bool, sample_count: int) list[int]#

Decode compressed IDEX wavelength data using linear prediction and Golomb-RICE.

Parameters:
  • compressed_data (str) – Binary string representation of the raw waveform.

  • nbit10 (bool) – If nbit10 is true, then the samples are expected to be 10 bits each, and if nbit10 is false, then the samples are expected to be 12 bits each.

  • sample_count (int) – The total number of samples to be decompressed.

Returns:

Decompressed data as a list of integers.

Return type:

list[int]