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
| Original | Rounded | Original (0b) | Rounded (0b) |
|---|---|---|---|
| 0.000000 | 0.000000 | 0_00000000_00000000000000000000000 | 0_00000000_00000000000000000000000 |
| 0.100000 | 0.101562 | 0_01111011_10011001100110011001101 | 0_01111011_10100000000000000000000 |
| 1.200000 | 1.250000 | 0_01111111_00110011001100110011010 | 0_01111111_01000000000000000000000 |
| 12.300000 | 12.000000 | 0_10000010_10001001100110011001101 | 0_10000010_10000000000000000000000 |
| 123.400002 | 120.000000 | 0_10000101_11101101100110011001101 | 0_10000101_11100000000000000000000 |
| 1234.500000 | 1280.000000 | 0_10001001_00110100101000000000000 | 0_10001001_01000000000000000000000 |
| NaN | NaN | 0_11111111_10000000000000000000000 | 0_11111111_10000000000000000000000 |
| inf | inf | 0_11111111_00000000000000000000000 | 0_11111111_00000000000000000000000 |
| -inf | -inf | 1_11111111_00000000000000000000000 | 1_11111111_00000000000000000000000 |
bitround_uint8.zarr
| Original | Rounded | Original (0b) | Rounded (0b) |
|---|---|---|---|
| 0 | 0 | 00000000 | 00000000 |
| 1 | 1 | 00000001 | 00000001 |
| 10 | 10 | 00001010 | 00001010 |
| 11 | 12 | 00001011 | 00001100 |
| 100 | 96 | 01100100 | 01100000 |
| 123 | 128 | 01111011 | 10000000 |
| 200 | 192 | 11001000 | 11000000 |
| 208 | 192 | 11010000 | 11000000 |
| 209 | 224 | 11010001 | 11100000 |
| 255 | 224 | 11111111 | 11100000 |
