Native entry points#
The C ABI in raster.h is
the native boundary. Link to libcugeo_raster; the
C++20 facade wraps the same handles and records in move-only
owners. Optional symbols remain present in a host build and return an
unsupported or CUDA-unavailable status when their implementation is absent.
Use the C ABI contract to look up descriptor initialization, status codes, ownership and symbol inventories. The golden examples link executable C, C++, Rust and Python consumers. Build and installation recipes live in the library README.
For coefficient-based atmospheric correction, the optional
cugeo.raster.extensions.sentinel2.surface_reflectance module writes physical reflectance into
caller-owned Float32 CUDA arrays. Its
surface-reflectance contract
describes broadcasting, NaN handling, stream synchronization and the Rust,
C and C++ entry points. The module also loads external Sen2Cor LUTs and provides bounded DDV visibility,
L1B calibration, device quality masks, terrain illumination, adjacency correction
and output encoding. Its contracts keep externally supplied
atmospheric choices explicit.