Skip to main content

preprocessing.fuse_response_tiffs

preprocessing.fuse_response_tiffs(
    inputs,
    output_path,
    *,
    resolution=10,
    dst_crs=None,
    bbox_mode='intersection',
)

Reproject + resample selected bands from each input onto a common grid and write a single multi-band GeoTIFF + sidecar metadata.

Parameters

Name Type Description Default
inputs list Each element is either a path string (use all bands) or a (path, [bands]) tuple where bands is a list of band names (matching the source’s band descriptions) or None for all. required
output_path str Destination GeoTIFF. required
resolution float Output pixel size in metres. 10
dst_crs str or rasterio.crs.CRS Target CRS. Defaults to the CRS of the first input (typically the highest-resolution mission, e.g. UTM for Sentinel-2 at 10 m). None
bbox_mode (intersection, union) How to combine the input footprints. "intersection" (default) keeps only the area covered by every input – the safe choice for per-pixel multi-modal models. "intersection"

Returns

Name Type Description
dict with keys bands (list of names), shape (C,H,W),
crs, transform for the written cube.