imap_processing.hi.hi_l1a.unpack_hist_counter#

imap_processing.hi.hi_l1a.unpack_hist_counter(counter_bytes: bytes) ndarray[tuple[int, ...], dtype[uint16]]#

Unpack Hi SCI_CNT counter data for a single counter.

Parameters:

counter_bytes (bytes) – Sum individual bytes for all epochs of a Hi SCI_CNT counter.

Returns:

output_array – The unpacked 12-bit unsigned integers for the input bytes. The output array has a shape of (n, 90) where n is the number of SCI_CNT packets in the input dataset.

Return type:

numpy.ndarray[numpy.uint16]