Skip to main content

Module environmental_raster

Module environmental_raster 

Source
Expand description

Continuous environmental raster and GeoTIFF conversion pipeline (§GAP-02).

Provides continuous f32 field handling for environmental layers (elevation, slope, canopy height, canopy cover, solar radiation, soil moisture, rainfall), derived raster calculations, bilinear spatial sampling, and serialisation into the .10d Field section (FIEL).

Structs§

EnvironmentalRasterLayer
Continuous environmental raster layer representation.
GeoTiffRasterInfo
Metadata and spatial bounds extracted from a GeoTIFF header.

Enums§

GeoTiffError
Error kinds for GeoTIFF parsing and decoding.

Constants§

ENV_CANOPY_COVER_URI
ENV_CANOPY_HEIGHT_URI
ENV_ELEVATION_URI
Standard environmental raster layer identifiers and units.
ENV_RAINFALL_URI
ENV_SLOPE_URI
ENV_SOIL_MOISTURE_URI
ENV_SOLAR_RADIATION_URI
UNIT_DEGREE
UNIT_METER
UNIT_MILLIMETER
UNIT_PERCENT
UNIT_WATT_PER_SQM

Functions§

compile_environmental_rasters_to_10d
Compile a collection of environmental raster layers into .10d Field section bytes.
decode_geotiff_raster_into
Zero-heap GeoTIFF raster decoder.
derive_canopy_cover_grid
Derives a local canopy cover percentage grid [0.0, 100.0] from canopy height values. Any pixel with height >= min_height_m is considered canopy.
derive_slope_horn
Derives slope in degrees from an elevation heightfield using Horn’s 3x3 finite-difference algorithm. Zero heap caller-buffered.
sample_bilinear
Bilinear interpolation of a continuous 2D scalar grid. Zero heap, hot path.