Skip to content

Resample

Module: spectralbridge.resample.

Spectral resampling utilities for cross-sensor calibration workflows.

API glossary ยท Workflow / scientific context

Signatures and documentation below are collected from the current source. Advanced objects are not newly declared stable by inclusion here.

Audience: advanced.

resample_chunk_to_sensor

resample_chunk_to_sensor(chunk: ndarray, wavelengths: ndarray, sensor_srf: Dict[str, ndarray]) -> np.ndarray

Resample a hyperspectral chunk to target sensor bands using SRFs.

Parameters:

Name Type Description Default
chunk ndarray

Hyperspectral reflectance cube with shape (y, x, bands).

required
wavelengths ndarray

Wavelength grid aligned to the last axis of chunk.

required
sensor_srf Dict[str, ndarray]

Mapping of sensor band name to spectral response sampled on wavelengths.

required

Returns:

Type Description
ndarray

Resampled cube with shape (y, x, len(sensor_srf)) and dtype float32.