cngi.image.rebin

rebin(xds, factor=1, axis='chan')[source]

Rebin an n-dimensional image across any single (spatial or spectral) axis

Parameters
  • xds (xarray.core.dataset.Dataset) – input Image Dataset

  • factor (int) – scaling factor for binning, Default=1 (no change)

  • axis (str) – dataset dimension upon which to rebin (‘d0’, ‘d1’, ‘chan’, ‘pol’). Default is ‘chan’

Returns

output Image

Return type

xarray.core.dataset.Dataset