Python API
Measure, pick, run.
The high-level API has five calls.
profile ranks recipes for a tile.
graph builds a reusable graph.
compress returns a frame.
decompress returns flat bytes.
coeffs reads what a frame carries.
the Python API
One tile selects the pipeline. Every matching tile reuses it.
signature profile(tile, *, prior="planar", width=None, planes=None, error=None, reps=5, nodata=None, verify=False) → ProfileResults
None tries all; "none" disables prediction.tile.shape[-1].B for (B, Y, X).print(rows) includes the input and settings.signature graph(raster, method, *, width=None, planes=None, error=None, nodata=None) → Graph
profile.raster.shape[-1].2 is absolute, "1%" is relative, and zero is lossless.signature compress(tile, *, graph, coeffs=None) → bytes
coeffs.signature decompress(frame, *, verify=True, max_output_size=None) → ndarray
uint8.signature coeffs(frame) → tuple | None
int32 per vector, or None when absent. Vector meaning is defined by the producer and consumer.Coefficient vectors are application-defined integer metadata. GeoZL preserves their values and ordering without interpreting them.
metadata = ((7, -3, 11), (2, 5)) frame = geozl.compress(tile, graph=g, coeffs=metadata) assert geozl.coeffs(frame) == metadata