Install features and diagnose capability gaps#
Choose a host installation for portable TIFF reads into NumPy. You need:
Linux;
Python 3.11 or newer, NumPy 2 or newer and affine 3.0.1 through the 3.0 release series;
cugeo-proj with PROJ 9.4 or newer, matching libtiff and its database;
Rust 1.85.1, a C11 compiler and
arat native build time.
Use the source-build recipe in the library README. The host installation needs no GPU or GDAL. See the window read guide for window selection and resizing.
To package a libcugeo_raster.so you already built with default features
instead of running Cargo, set CUGEO_RASTER_PREBUILT_LIBRARY to its absolute
path. The build loads the library and refuses it when it cannot be loaded,
when cugeo_raster_capabilities reports an optional compiled feature, or when any
CUGEO_RASTER_BUILD_* switch is also set.
For CUDA 13 allocating TIFF reads, use the README’s CUDA source-install recipe. It builds CUDA-enabled cugeo-proj, supplies a matching CuPy allocator, installs nvTIFF/nvCOMP before the build, and sets both native CUDA and nvTIFF switches. The same section gives the on-demand installed-artifact pixel check and its retained identity record.
For an optional route:
Find the feature and input profile in the capability matrix.
Select build switches and runtime dependencies from the README’s feature table and production build contract. Python extras supply dependencies; they do not rebuild an existing host wheel.
Inspect the installed artifact’s reported features:
uv run --project cugeo-raster --no-sync python -c 'import cugeo.raster; print(cugeo.raster.diagnostics.capabilities())'Capability output
Interpretation
cuda,npp,nvimagecodec,nvjpeg2k,nvcomp,nvtiff,gds,rmmOptional compiled features
Operation flags and host core information
Build capabilities and host core details
extensions.sentinel2Surface-reflectance processing included; core SAFE I/O and optional physical-module availability are independent
If its native feature is missing, nvCOMP reader creation or direct JPEG2000 read preparation/execution raises
cugeo.raster.UnsupportedErrorwithcode == 2. Neither substitutes another decoder.Check dtype, compression, band count, layout and requested residency against the route’s profile. Compiled flags establish neither file support nor runtime qualification; upstream codec support alone does not admit a file.
The nvjpeg2k and nvimagecodec extras select the public CUDA 13 package
nvidia-nvjpeg2k-cu13==0.12.0.58. Set NVJPEG2K_ROOT to that package’s
nvidia/nvjpeg2k directory for a direct feature build. No SDK source checkout
or separate SDK build is required.
The nvimagecodec extra selects nvTIFF 0.9.0.86 and nvCOMP 6.0.0.12 directly
instead of the vendor nvidia-nvimgcodec-cu13[nvtiff]==0.9.0.20 extra, which
requires nvCOMP older than 6. Installing both extras conflicts.
For unsupported or CUDA-unavailable errors, choose a documented build or request. cugeo-raster never falls back to GDAL or Rasterio.
Demo scorecards distinguish
unavailable routes from execution failures. Success proves execution only:
correctness.status is not-checked because demos run no independent oracle.