pyradtran.channels.convolve_channels

pyradtran.channels.convolve_channels#

pyradtran.channels.convolve_channels(result: Dataset, srf: DataArray, keep_spectral: bool = False) Dataset[source]#

SRF-average all spectral variables onto a channel dimension.

Parameters:
  • result (xarray.Dataset) – Spectral simulation result with a wavelength dimension (nm).

  • srf (xarray.DataArray) – Spectral response, dims (channel, wavelength). Interpolated onto the result’s wavelength grid; values outside the SRF grid are treated as zero response.

  • keep_spectral (bool, default False) – Keep the original spectral variables under <name>_spectral.

Returns:

Channel-space dataset; non-spectral variables pass through.

Return type:

xarray.Dataset