Skip to content

bitround Codec Sample Data ​

This directory contains sample Zarr arrays encoded with the bitround codec on float32 and uint8 data.

Both arrays were encoded with the following bitround configuration, which retains 3 bits of precision:

json
"name": "bitround",
"configuration": {
    "keepbits": 3
}

bitround_float32.zarr ​

OriginalRoundedOriginal (0b)Rounded (0b)
0.0000000.0000000_00000000_000000000000000000000000_00000000_00000000000000000000000
0.1000000.1015620_01111011_100110011001100110011010_01111011_10100000000000000000000
1.2000001.2500000_01111111_001100110011001100110100_01111111_01000000000000000000000
12.30000012.0000000_10000010_100010011001100110011010_10000010_10000000000000000000000
123.400002120.0000000_10000101_111011011001100110011010_10000101_11100000000000000000000
1234.5000001280.0000000_10001001_001101001010000000000000_10001001_01000000000000000000000
NaNNaN0_11111111_100000000000000000000000_11111111_10000000000000000000000
infinf0_11111111_000000000000000000000000_11111111_00000000000000000000000
-inf-inf1_11111111_000000000000000000000001_11111111_00000000000000000000000

bitround_uint8.zarr ​

OriginalRoundedOriginal (0b)Rounded (0b)
000000000000000000
110000000100000001
10100000101000001010
11120000101100001100
100960110010001100000
1231280111101110000000
2001921100100011000000
2081921101000011000000
2092241101000111100000
2552241111111111100000