Resample Operator |

# Resample Operator Description

## Overview

Name: | `Resample`
Full name: | `org.esa.snap.core.gpf.common.resample.ResamplingOp`
Purpose: | Resampling of a multi-size source product to a single-size target product.
Version: | 2.0

## Description

No description available.

## Sources

Name | Description
--- | ---
`sourceProduct` | The source product which is to be resampled.

## Parameters

Name | Data Type | Default | Description | Constraints
--- | --- | --- | --- | ---
`referenceBand` | `String` | `` | The name of the reference band. All other bands will be re-sampled to match its size and resolution. Either this or targetResolutionor targetWidth and targetHeight must be set. |
`targetWidth` | `Integer` | `` | The width that all bands of the target product shall have. If this is set, targetHeight must be set, too. Either this and targetHeight or referenceBand or targetResolution must be set. |
`targetHeight` | `Integer` | `` | The height that all bands of the target product shall have. If this is set, targetWidth must be set, too. Either this and targetWidth or referenceBand or targetResolution must be set. |
`targetResolution` | `Integer` | `` | The resolution that all bands of the target product shall have. The same value will be applied to scale image widths and heights. Either this or referenceBand or targetwidth and targetHeight must be set. |
`upsampling` | `String` | `Nearest` | The method used for interpolation (upsampling to a finer resolution). | value set: [Nearest, Bilinear, Bicubic]
`downsampling` | `String` | `First` | The method used for aggregation (downsampling to a coarser resolution). | value set: [First, Min, Max, Mean, Median]
`flagDownsampling` | `String` | `First` | The method used for aggregation (downsampling to a coarser resolution) of flags. | value set: [First, FlagAnd, FlagOr, FlagMedianAnd, FlagMedianOr]
`resamplingPreset` | `String` | `` | The resampling preset. This will over rules the settings for upsampling, downsampling and flagDownsampling. |
`bandResamplings` | `String` | `` | The band resamplings. This will over rules the settings for resamplingPreset. |
`resampleOnPyramidLevels` | `boolean` | `true` | This setting will increase performance when viewing the image, but accurate resamplings are only retrieved when zooming in on a pixel. |