Sentinel-2 source ownership#
Use this inventory to locate the semantic owner of Sentinel catalog, radiometry and sensor work. The extension contract defines the public interfaces and selection behavior. Each source below has one semantic owner; its location establishes no additional runtime support or qualification.
Catalog and bindings#
Paths are relative to cugeo-raster/.
Source or surface |
Owner |
|---|---|
|
Core: bounded XML/profile validation, canonical roots/containment, level/granule/baseline, descriptors, raw source text, radiometry metadata, assets and typed groups |
|
Unconditional crate-root SAFE type exports from the private |
|
Core: product/asset/band/reader/group adapters using common FFI error/output/close helpers |
|
Common C declarations/layouts and exports in every selection |
|
Core |
|
Core catalog and group readers, raw radiometry metadata, source retention and ordinary dispatch |
|
Core source/metadata adoption and common owned-catalog copying/close |
|
Processing and explicit physical namespaces; no catalog type exports |
The unconditional Rust crate-root types are Sentinel2Level, Sentinel2Grid,
Sentinel2BandDescriptor, Sentinel2SourceOffset, Sentinel2Conversion,
Sentinel2BandMetadata, Sentinel2BandView, Sentinel2Product,
Sentinel2Reader, Sentinel2AssetDescriptor, Sentinel2AssetKind,
Sentinel2AssetView, Sentinel2Subdataset, Sentinel2SubdatasetId and
Sentinel2SubdatasetSelector. Their methods retain raw sample, metadata and
selected-source lifetime contracts in every build.
Python’s canonical implementation is cugeo.raster.io.sentinel2, with
Sentinel2Product, Sentinel2Band, Sentinel2Reader, Sentinel2Radiometry,
Sentinel2SourceOffset, Sentinel2SourceOffsetState, Sentinel2Conversion,
Sentinel2AssetDescriptor, Sentinel2AssetKind and Sentinel2AssetMetadata.
The I/O facade exports these types. The ordinary root exports the existing
six band/product/radiometry/offset/conversion types. Group views open through
ordinary open. The C++ catalog resides in io::sentinel2; its product,
reader, subdataset, band and asset types use the common C handles.
The core C adapter suffixes below all have the cugeo_raster_ prefix. Each
function retains its spelling, signature and ordinary validation in every
selection; none is a processing-omission stub.
Adapter |
Exact symbol suffixes |
|---|---|
|
|
|
|
Core owns stored TCI/SCL/cloud/snow/AOT/WVP identities, units, quantification, classes and pixels, including grouped L2A auxiliary planes. Optional offsets and typed conversions are source metadata; reads do not apply calibration. Metadata and selected sources retain their existing ownership after product or group closure. Pixel execution uses independently selected codec features.
Existing radiometry primitives#
The surface-reflectance domain includes native table decoding, explicit coefficient inversion, calibration, visibility retrieval, correction, encoding and SAFE-angle/DEM preparation. It contains implemented primitives and an experimental workflow; this inventory claims neither complete atmospheric retrieval nor qualified Sen2Cor equivalence.
Sources |
Owner and public surface |
|---|---|
|
Sentinel extension; public Rust items retain their names under |
|
Sentinel table interpretation and band/atmosphere policy, including |
|
Sentinel radiometry/calibration/QA/correction/encoding functions and |
|
SAFE solar/view-angle and surface-processing grid/DEM policy: |
|
Surface-processing illumination/coefficient-field composition and |
|
Sentinel extension C adapters; existing flat C names remain their sole spellings |
|
Sentinel extension kernel source; compile only with the extension and CUDA |
|
Installed beneath |
|
C++ radiometry in |
|
Source-only experiment; uses public extension imports. Its private orchestration is not an installed processor or an independent sensor oracle. |
The named surface geometry is the SAFE-angle/atmospheric-processing adapter, not the generic geolocation inverse or a physical push-broom model. Its EGM96/north-up terrain policies do not establish the physical sensor’s DEM/geoid/frame contract. Shared TIFF/HGT access, coordinate operations and sensor-independent raster geometry retain their core/proj owners.
The radiometry C adapter inventory is grouped below. Each name has the
cugeo_raster_ prefix. Grouping assigns every current export in these four
adapter files; it creates no additional public spelling.
Adapter |
Exact symbol suffixes |
|---|---|
|
|
|
|
|
|
|
|
The Python module’s literal __all__ supplies the radiometry export inventory:
AtmosphericCoefficients, AtmosphericLUT, BandCalibration, RadiativeTerms,
Sen2CorLUT, SurfaceFieldSampler, SurfaceGeometryFields,
SurfaceGeometryPlan, SurfaceGeometryPrepared, VisibilityResult,
compose_surface_geometry, correct_surface, correction_workspace_bytes, encode_l2a,
l1b_to_reflectance, quality_validity, read_sen2cor_lut,
retrieve_visibility, source_illumination,
source_illumination_workspace_bytes, terrain_coefficients,
terrain_illumination, toa_to_surface, and visibility_workspace_bytes.
Their selected module has this same export set; private helpers remain private.
Tests, generated surfaces and reference ownership#
Core SAFE tests in src/sentinel2.rs, its child modules and C adapters run in
standard, core-only and explicit-processing selections. The
test_sentinel2_safe, test_sentinel2_l1b, test_sentinel2_l1b_gpu and
test_sentinel2_safe_qualifier Python modules use core catalog imports and
preserve their independent metadata/pixel, containment, invalid-input,
retained-reader and failure-draining assertions.
Core JPEG2000 inspection, mask, pool and finishing suites retain their
SAFE-associated cases in every selection. tests/metadata_catalog.rs, Python
properties/mask-source tests and the C++ facade likewise inspect real core
catalogs. A direct codestream does not replace product-associated nodata or
conversion metadata. Generic HGT stays core; SurfaceDem policy stays with
processing. In the mixed array-contract suite only the atmospheric-processing
case requires the processing capability.
Only processing semantic cases follow extension-sentinel2; CUDA/backend
prerequisites remain independent. Report unavailable Python cases as explicit
skips and standalone unavailable runners as SKIP/77. Never skip an entire
mixed suite or count zero comparisons as a pass. Rust processing cases compile
out under their documented conditions. Installed consumers require core SAFE
opening/discovery in every selection and check processing omission separately.
tests/surface_reflectance.rs and the test_surface_reflectance* and
test_surface_geometry Python suites exercise the radiometry domain. Their
independent analytic expectations and existing on-demand CUDA tiers survive
the move. An unchanged test registration or a source import alone is not an
executed qualification.
The ABI snapshots and tests/abi/mirrors.json retain the one-header policy.
Their generated Rust guards and Python mirror paths follow the selected source
owners. tests/api/ snapshots record the public namespaces and Rust feature
conditions; they do not require omitted Rust stub APIs. Regenerate
them with their owning tools, including support for the explicit Rust source
path, and explain every changed pin.
scripts/generate_sentinel2_safe_fixtures.py, tests/data/sentinel2_safe/,
tools/qualify-sentinel2-safe.py and tools/test-sentinel2-l1b.sh retain
fixture/reference provenance and qualification scope. They consume the public
core catalog and raw readers. GDAL raw pixels, metadata and codec reductions
remain separate comparisons from independent physical Sen2VM reference
coordinates. Neither changing ownership nor passing generic reprojection tests
establishes authentic L2A coverage, physical sensor accuracy or acceleration.