codec / near-lossless / lossy
quant_log
Allow the same percentage of error everywhere.
quant_log uses a relative error bound. With MAX_ERROR=1%, a
value near 8 and one near 8,000 both keep the same proportional accuracy. Zero remains exact, and
the grid depends only on the recipe, so changing chunk boundaries does not change the result. Send
NaNs through nodata.
- ctid
- 0x72D782
- header
- dtype + flags + step · 10 bytes
- recipe
- LOG:MAX_ERROR=P% · ,STORE=VALUES
- types
- integers 8 to 64-bit · floats 16 to 64-bit
- decode
- one table lookup, or a copy when the stream holds the reconstruction
Code
error="LOG:MAX_ERROR=1%"