Documentation
The SDK extracts topologically ordered contour curves and filled
contour bands from 2D scalar grids using an output-sensitive sweep
algorithm. The core is a C11 library with no third-party dependencies; the
Python package and the isosweep-contour command-line tool wrap the same
library. The SDK
is commercial software, delivered as binaries with an evaluation or licence
— request an evaluation.
Pick your quickstart
Section titled “Pick your quickstart”- C quickstart — the native API (
isosweep_contour). - Python quickstart — numpy in, numpy out.
- Command-line quickstart — GeoTIFF in, GeoPackage out, even larger than RAM.
The 30-second version
Section titled “The 30-second version”import numpy as npimport isocurves
z = np.random.rand(1024, 1024) # any 2D scalar fieldresult = isocurves.contour(z, levels=[0.3, 0.5, 0.7])
for curve in result: curve.x, curve.y # ordered vertex arrays curve.level_value # the iso-value curve.is_closed # closed loop vs open (exits the grid) curve.is_hill # higher values inside?Curves arrive ordered, closed where the field closes them, and topology-tagged — there is no stitching or ring-assembly step. See the output format for what the topology metadata means and why it exists.