Resampling notifications

The purpose of this page is to list at what moments in SNAP a Resampling Issue shall be raised and how SNAP shall proceed. In general, the issue shall always be raised whenever a function is selected that does not work with multisize-products at all or only with restrictions.

 

FeatureRaise Resampling Issue when a multisize-product is selected and ...Expected Behaviour on "Yes, resample"Expected Behaviour on "No, do not resample" / Resampling not possibleImplementation StateTesting State ( does not apply, not correct)Testing State

Band Arithmetic

When choosing "Band Maths..." from the menu

Open Resampling Op UI

Band Arithmetic UI stays open

Use Band Arithmetic UI, show error message when trying to combine bands of different sizesDoneOK 
Scatter Plot
  • When opening the plot
  • When selecting a multisize-product from one of the combo boxes in the user interface

Open Resampling Op UI

Scatter Plot stays open

Show scatter plot, only allow to pick bands of same sizesDone

The first processing is ok.

By second processing the same
problem as with the Fill DEM Hole.
 
Attach Pixel Geo-Coding

When choosing "Attach Pixel Geo-Coding" from the menu

Open Resampling Op UI

UI stays open

In "Attach Pixel Geo-Coding" UI, only show bands of same size as productDoneOK 
Compute Mask Area

When choosing "Mask Area" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

Do not show UI

Do not show UIDone / FixedOK 
Land/Sea Mask

When choosing "Land/Sea Mask" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when source bands are not of same size

Done

The first processing is ok.

By second processing the same
problem as with the Fill DEM Hole.
 
Land Cover Mask

When choosing "Land Cover Mask" from the menu

When a multi-size product is selected in the source product selection of the UI

 Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when source bands are not of same size

Done

The first processing is ok.

By second processing the same
problem as with the Fill DEM Hole.
 
Pixel Extraction

When choosing "Extract Pixel Values" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

   
Fill DEM Hole

When choosing "Fill DEM Hole" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when source bands are not of same size

Done

The first processing is ok.

By second processing, selected product
in 'Fill DEM Hole', will not be  selected in Resampling Operator.

Fill DEM Hole in Landsat
Try to fill DEM Hole in S3

 
Oversample

When choosing "Oversample" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when source bands are not of same size

DoneThe same problem as with the Fill DEM Hole 
Undersample

When choosing "Undersample" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when source bands are not of same size

DoneThe same problem as with the Fill DEM Hole 

Grey Level Co-occurence matrix

When choosing "Grey Level Co-occurence matrix" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when source bands are not of same size

Done

The first processing is ok.

By second processing the same problem
as with the Fill DEM Hole.
 
Orthorectification

When choosing "Orthorectification" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

Not to be implemented as stated: UI already uses other approach with filtering out products  
NDVI

When choosing "NDVI" from the menu

When a multi-size product is selected in the source product selection of the UI

 Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when source bands are not of same size

DoneOK 
Reprojection

When choosing "Reproject" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

DoneOK 
Subset

When choosing "Subset..." from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

Done

OK

 
Binning

When choosing "Level-3 Binning" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

   
Mosaicing

When choosing "Mosaicing" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

Users can only select files, no products. No check possible  
Collocation

When choosing "Collocation" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

Donedoes not work 
EMClusterOp

When choosing "EM Cluster Analysis" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

DoneThe same problem as with KMeansClusterOp. 
KMeansClusterOp

When choosing "K-Means Cluster Analysis" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

DoneKMeansClusterOp, processing parameters, 
source band names list stays after resampling empty.
 
PrincipleComponentAnalysisOp

When choosing "Principal Component Analysis" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, open UI with resampled product pre-selected

Show UI, as user still might choose to select a valid product from the UI

Throw exception when executed with a multisize source product

DoneOK 
Export

When choosing any Export option from the File Menu

Open Resampling Op UI

After calculation of resampled product, show Export Dialog with resampled product

Do not show export dialogDone  
Copy Pixel Info To ClipboardWhen Choosing "Copy Pixel-Info To Clipboard" from a scene view's context menu

Open Resampling Op UI

Do nothing else

Do nothingDoneOK 
Export Transect PixelsWhen Choosing "Export Transect Pixels" from a scene view's context menu

Open Resampling Op UI

Do nothing else

Do nothingDonedoes not work: 'SNAP - Export Transect Pixels' dialog
does not appear.
 
Export Mask PixelsWhen Choosing "Export Mask Pixels" from a scene view's context menu

Open Resampling Op UI

Do nothing else

Do nothingDoneOK 
Create mask from Band MathsWhen Choosing the option to create a new mask from band maths in the mask manager

Open Resampling Op UI

Do nothing else

Show dialog, as user might define a valid mask equation. If the equation is invalid, do not create maskDone

does not work. After resampling, insert band
math expression and clicking 'OK' appears the message:

"Referenced raster all be the same size..."

The mask will not be created

 
Propagate Uncertainty Dialog
  • Create a virtual band in a multi-size product
  • From the context menu of the virtual band, choose "Propagate Uncertainty"

Open Resampling Op UI

Do nothing else

Do nothingDone

Leads to NPE

java.lang.NullPointerException

    at org.esa.snap.rcp.bandmaths.PropagateUncertaintyAction.
actionPerformed
(PropagateUncertaintyAction.java:59)

 
Spectral Unmixing

When choosing "Spectral Unmixing" from the menu

When a multi-size product is selected in the source product selection of the UI

Open Resampling Op UI

After calculation of resampled product, show UI with resampled product

Show UI, as user still might choose to select a valid product from the UI

Throw exception when source bands are not of same size

Done

The same problem as with KMeansClusterOp.

 
Link "SNAP Issue Tracker"Link "SNAP Issue Tracker"  FixedOK 
Transfer MaskOpen Mask Manager, click transfer mask

Open Resampling Op UI

After calculation of resampled product, proceed as wanted

Do nothingDoneOK, but the mask will be added to Mask node
and to Bands node. In the not multi-size product
the new mask will be added only to Mask node.
 
OpenHSVImageActionWhen Choosing "Open HSV Image Window" from menu

Open Resampling Op UI

After calculation of resampled product, show UI with resampled product

Proceed, as user might choose valid band combinationDoneOK 
OpenRGBImageActionWhen Choosing "Open RGB Image Window" from menu

Open Resampling Op UI

After calculation of resampled product, show UI with resampled product

Proceed, as user might choose valid band combinationDoneOK 
Refreshing of the resampling operatorThe 'Reference band name' shal be refreshed by change from one product to the other.      
gpt    OK