Collocation with Sentinel-2 + Radiometric indices

Hello
It seems that there is a problem after the collocation of radiometric index products with the Sentinel-2 Level 2A resampled and subsetted product.
After the collocation process, it was not possible to display the resulting product.

Please provide the following information:

  • The SNAP version you are using
  • All the processing steps you followed
  • The messages.log file generated after reproducing the error

Thank you

Hella Diana.
Thank you for your message.
I am processing the Sentinel-2 Level 2A product with SNAP Desktop (version 11) running in Windows 11. After resampling the product at 10 m and subsetting it, I computed some radiometric indices using the different processors found in the “Thematic Land Processing” toolset. To stack all the individual products with the reference product, using the “Collocation” tool. After this last processing, an error message indicate that it is nos possible to display the RGB image. The log message is the following:
java.lang.NullPointerException
at org.esa.snap.core.datamodel.VectorDataMultiLevelImage.(VectorDataMultiLevelImage.java:85)
at org.esa.snap.core.datamodel.VectorDataMultiLevelImage$2.(VectorDataMultiLevelImage.java:65)
at org.esa.snap.core.datamodel.VectorDataMultiLevelImage.createMaskImage(VectorDataMultiLevelImage.java:65)
at org.esa.snap.core.datamodel.Mask$VectorDataType.createImage(Mask.java:509)
at org.esa.snap.core.datamodel.Mask.createSourceImage(Mask.java:126)
at org.esa.snap.core.datamodel.RasterDataNode.getSourceImage(RasterDataNode.java:2174)
at org.esa.snap.core.layer.MaskLayerType.createMultiLevelSource(MaskLayerType.java:81)
at org.esa.snap.core.layer.MaskLayerType.createMultiLevelSource(MaskLayerType.java:77)
at org.esa.snap.core.layer.MaskLayerType.createLayer(MaskLayerType.java:63)
at org.esa.snap.core.layer.MaskLayerType.createLayer(MaskLayerType.java:52)
at org.esa.snap.ui.product.ProductSceneImage.createMaskCollectionLayer(ProductSceneImage.java:345)
at org.esa.snap.ui.product.ProductSceneImage.getMaskCollectionLayer(ProductSceneImage.java:189)
at org.esa.snap.ui.product.ProductSceneView.getMaskCollectionLayer(ProductSceneView.java:1230)
at org.esa.snap.ui.product.ProductSceneView.setMaskOverlayEnabled(ProductSceneView.java:615)
at org.esa.snap.ui.product.ProductSceneView.(ProductSceneView.java:273)
at org.esa.snap.ui.product.ProductSceneView.(ProductSceneView.java:209)
[catch] at org.esa.snap.rcp.actions.window.OpenRGBImageViewAction$1.done(OpenRGBImageViewAction.java:305)
at java.desktop/javax.swing.SwingWorker$5.run(SwingWorker.java:750)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:847)
at java.desktop/sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:857)
at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:317)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:249)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Hi Armand,

I could not reproduce the error using the latest SNAP version (SNAP 12). Could you also provide the processing parameters used at each step?

Thank you!