Error for subsetting processed S1 GRDH scene

Hello,

I’ve processed a normal S1 GRD scene and saved it to a NetCDF/CF file. Now I’m trying to create a subset using snap.

When I’m trying to execute the tool, I’m receiving the following error message:

I’m running the newest version of snap 3.0 on a windows 7 x64 machine.

Here’s the additional error info:

java.lang.IllegalArgumentException: data is not an instance of String, char[] or byte[]or the length is less than one at org.esa.snap.core.datamodel.ProductData$ASCII.setElems(ProductData.java:2498) at org.esa.snap.core.dataio.ProductSubsetBuilder.updateMetadata(ProductSubsetBuilder.java:95) Caused: java.io.IOException at org.esa.snap.core.dataio.ProductSubsetBuilder.updateMetadata(ProductSubsetBuilder.java:161) at org.esa.snap.core.dataio.ProductSubsetBuilder.readProductNodesImpl(ProductSubsetBuilder.java:238) at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:169) at org.esa.snap.core.dataio.AbstractProductBuilder.readProductNodes(AbstractProductBuilder.java:78) at org.esa.snap.core.dataio.ProductSubsetBuilder.createProductSubset(ProductSubsetBuilder.java:69) at org.esa.snap.core.dataio.ProductSubsetBuilder.createProductSubset(ProductSubsetBuilder.java:63) at org.esa.snap.core.datamodel.Product.createSubset(Product.java:1870) [catch] at org.esa.snap.rcp.subset.CreateSubsetAction.createSubset(CreateSubsetAction.java:99) at org.esa.snap.rcp.subset.CreateSubsetAction.actionPerformed(CreateSubsetAction.java:64) at org.openide.awt.InjectorExactlyOne.actionPerformed(InjectorExactlyOne.java:78) at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:226) at org.openide.awt.ContextManager.actionPerformed(ContextManager.java:260) at org.openide.awt.ContextAction.actionPerformed(ContextAction.java:109) at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:93) at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116) at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99) at org.openide.awt.GeneralAction$BaseDelAction.actionPerformed(GeneralAction.java:234) 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.AbstractButton.doClick(Unknown Source) at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source) at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.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$JavaSecurityAccessImpl.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)

Thanks for your help.

Val

I’d recommend saving to NetCDF only as the last step before export. I’m pretty sure DIMAP offers much higher performance inside SNAP.

Thanks for the tip.

I plan to eventually assemble and mosaic a big amount of processed S1 scenes. I used NetCDF in order to reduce the amount of files inside a folder.