GeoZL
Earth observation codecs for OpenZL
GeoZL is one layer of the Asterisk stack for AI
Dataset developers cannot pick their own codec
The format picks the codec, not the data developers who understand the data.
We let the file format choose the codec. Now that we want better compression, we cannot change one without the other.
Models became graphs. Now codecs do too.
The decoder is universal
OpenZLzigzagtransposeentropyzstdfield_lzsplittokenize
GeoZLplanarmedaveragewp_staticdelta_wpforlanesnodata
forwardcompress
one frame
header, the graph
streams, the compressed samples
backwarddecompress
bit-identical
universal decoderreads the graph in the header and runs it backwards
The same decoder opens every frame, whatever graph it carries. So codecs can follow the data, one per modality, per region or per date.
Cut, compress your way. Rumi just writes.
Predictors guess each sample from its neighbours
Every predictor is tuned for one CPU core, with NEON, SSE2 and AVX2 kernels picked at run time.
Near-lossless keeps the bound you choose
On the CPU, frames decode in RAM
tile = geozl.decompress(frame).view(dtype).reshape(shape)
The frame stores no dtype or shape. The caller keeps them, as Rumi does in its external header.
On a GPU, frames decode in GPU memory
geozl_gpu_decode(gpu, frames, n, copies, m, sampleBytes, elementBytes, &target, NULL, err, len);
Frames whose recipe ends in pfor or lanes expand on the GPU. Any other frame decodes on the CPU and is copied up.
Five languages, one C core
geozl_2d_compress_c("planar>zigzag>pfor", width, planes, NULL, GEOZL_DT_U16,
GEOZL_NODATA_NONE, 0, src, n, 2, dst, capacity, &size, err, sizeof err);g = geozl.graph(tile, "planar>zigzag>pfor")
frame = geozl.compress(tile, graph=g)g <- geozl_graph(tile, "planar>zigzag>pfor", dtype = "uint16")
frame <- geozl_compress(tile, g)g = GeoZL.graph(tile, "planar>zigzag>pfor")
frame = GeoZL.compress(tile, g)const geozl = await createGeoZL();
frame = geozl.compress(bytes, {method: 'planar>zigzag>pfor', width: 256, dtype: DType.U16});