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 |
required |
wavelengths
|
ndarray
|
Wavelength grid aligned to the last axis of |
required |
sensor_srf
|
Dict[str, ndarray]
|
Mapping of sensor band name to spectral response sampled on |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Resampled cube with shape |