preview

preview(xds, variable='image', region=None, pol=0, channels=0, tsize=250)[source]

Preview the selected image component

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

  • variable (str) – dataset variable to plot. Default is image

  • region (str) – dataset variable to use as a region/mask.

  • pol (int) – polarization dimension index to plot. Default is 0

  • channels (int or list) – channel dimension index or indices to plot. Default is 0

  • tsize (int) – target size of the preview image (might be smaller). Default is 250 pixels

Returns

Return type

Open matplotlib window