encode_8bit

baseband.base.encoding.encode_8bit(values)[source] [edit on github]

Encode 8 bit VDIF data.

We follow mark5access, which assumes the values 0 to 255 encode -127.5 to 127.5, scaled down to match 2 bit data by a factor of 35.5 (EIGHT_BIT_1_SIGMA)

For comparison, GMRT phased data treats the 8-bit data values simply as signed integers.