←
Asterisk Labs

GeoZL

Earth observation codecs for OpenZL

GeoZL02 / 13

GeoZL is one layer of the Asterisk stack for AI

training datasets files codecs bytes PyTorch, JAX, TensorFlow your model, fed tensors through DLPack on a CPU or a GPU TACO AI-ready datasets, one sample per example cozip a ZIP you open like a table Rumi tensors read by window, band and time GeoZL Earth observation codecs, on OpenZL Karu batched byte-range reads from files, HTTP, S3, GCS, Azure, Hugging Face and Source Cooperative holds
GeoZL03 / 13

Dataset developers cannot pick their own codec

What a new codec needs before a GeoTIFF can use it 1 · Adobe a Compression number in the TIFF registry, where ZSTD is still missing 2 · libtiff the codec itself written into libtiff and released 3 · GDAL turned on in the build every GDAL build picks its own list of codecs 4 · every user the new version installed until they update GDAL, the file does not open

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.

GeoZL05 / 13

Models became graphs. Now codecs do too.

deep learning 8,449AlexNethand-written CUDA, 2012 35PyTorcha graph of layers, 2017 compression 22,735+PNGlibpng and zlib, hand-written C 8PNG-style graphOpenZL and GeoZL nodes
GeoZL06 / 13

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.

GeoZL07 / 13

Cut, compress your way. Rumi just writes.

GeoZL08 / 13

Predictors guess each sample from its neighbours

Wx delta_wx − Wsmooth along rows only Nx delta_nx − Nthe fastest to decode NWNWx planarx − (W + N − NW)continues the local slope NWNWx medmedian edge detectorcrisp edges, fields and cities NWx averagex − ⌊(W + N) / 2⌋textured or noisy surfaces NWNWx wp_statica kernel fitted to the tilea slanted dominant direction

Every predictor is tuned for one CPU core, with NEON, SSE2 and AVX2 kernels picked at run time.

GeoZL09 / 13

Near-lossless keeps the bound you choose

LINEAR error=2 low valueshigh values one step everywhere |x − x̂| stays under a fixed value, such as metres of elevation LOG error="1%" low valueshigh values steps grow with the value |x − x̂| stays under a share of x, such as rainfall or radiance SQRT error="SQRT:MAX_ERROR=0.5N" low valueshigh values steps follow the noise the bound is a share of the shot noise a sensor already adds The quantizer runs right after nodata, then the same predictors and coders follow.
GeoZL10 / 13

On the CPU, frames decode in RAM

tile = geozl.decompress(frame).view(dtype).reshape(shape)
HOST Your codePython, R, Julia, C, JS OpenZLreads the graph GeoZLruns the EO codecs Your arraydtype and shape you kept decompressone frame read the recipecodecs by CTid undo each codecSIMD, fused when it can samplesas the recipe wrote them

The frame stores no dtype or shape. The caller keeps them, as Rumi does in its external header.

GeoZL11 / 13

On a GPU, frames decode in GPU memory

geozl_gpu_decode(gpu, frames, n, copies, m, sampleBytes, elementBytes, &target, NULL, err, len);
HOST GPU CallerRumi or your C code OpenZLreads each frame GeoZL kernelsexpand on the GPU Device bufferyours, or a tensor a batch of framesand where each window goes keep the payloadbefore it expands send it overcompressed bytes only PFOR or PivCothen zigzag and planar windows in placeno stacking after

Frames whose recipe ends in pfor or lanes expand on the GPU. Any other frame decodes on the CPU and is copied up.

GeoZL12 / 13

Five languages, one C core

C libgeozl GeoZL codecs on OpenZL C calls it directly Pythoncffi RR.Call Juliaccall WA WebAssembly Emscripten JSJavaScript
g = geozl.graph(tile, "planar>zigzag>pfor")
frame = geozl.compress(tile, graph=g)
Asterisk Labs

Thank you