Graph Builder/Batch processing

Hi there;

I am wondering if there is any issue on inactive ‘Reproject’ or ‘BandMaths’ modules for Graph Builder & Batch processing in SNAP Beta 5. Currently, MOD/MYD02HKM L1B images (with hdf4 format files) are used as ‘Read’ input files.

Previously, I couldn’t add it in either Graph Builder or Batch processing windows on Sentinel 2 and 3 toolboxes, but, finally, I added up it on SNAP package’s Graph Builder. However, I can’t do anything in “BandMaths” due to inactive status - Can’t edit it at all.

Do you have any comment? Thanks for your help in advance.

Kevin

2 Likes

Also, ‘reprojection’ module (Raster/Geomatric Operations/…) has been not working as below. It happened when MOD/MYD02HKM images were reprojected on SNAP Beta 5. Any ideas? Many thanks in advance!

Regarding error message for batch-processing, please see as following:

java.lang.ClassCastException: java.lang.String cannot be cast to org.esa.snap.gpf.operators.standard.BandMathsOp$BandDescriptor
at org.esa.snap.graphbuilder.gpf.ui.BandMathsOpUI.initParameters(BandMathsOpUI.java:70)
at org.esa.snap.graphbuilder.gpf.ui.BandMathsOpUI.CreateOpTab(BandMathsOpUI.java:58)
at org.esa.snap.graphbuilder.rcp.dialogs.BatchGraphDialog.addGraphTabs(BatchGraphDialog.java:428)
[catch] at org.esa.snap.graphbuilder.rcp.dialogs.BatchGraphDialog.LoadGraph(BatchGraphDialog.java:227)
at org.esa.snap.graphbuilder.rcp.dialogs.BatchGraphDialog.LoadGraph(BatchGraphDialog.java:218)
at org.esa.snap.graphbuilder.rcp.dialogs.BatchGraphDialog.onYes(BatchGraphDialog.java:198)
at org.esa.snap.framework.ui.AbstractDialog.lambda$initUI$3(AbstractDialog.java:457)
at org.esa.snap.framework.ui.AbstractDialog$$Lambda$148/1527237957.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

  • It came up after opened with the existing ‘myGraph’ XML file.

Hi Kevin, could you please provide your graph xml file you are mentioning?

– Norman

Hi Norman;

Here is *.xml graph-xml file in this message. It came up with errors from either ‘BandMaths’ or ‘Reproject’.

myGraph_Snap15_0812.xml (2.5 KB)

Kevin

We have tried to reproduce the problem. We got the same error when using the graph builder.
To overcome this in the current beta you can use the graph file with gpt from the command line. We tried this and no error occurred.

This is a problem with the BandMathsUI. It can’t convert a String into a BandDescriptor. We’ll try to get this fixed soon.

Thanks for your replies!

Kevin

Hi, is it possible to create a tiff file inside the xml file or do we have to go back to SNAP to do it at the end of the process ?
Thanks