Subset error: gridHeight >=2

in the last months I have always used subset without problem but right now, after a month without opening SNAP, I’m having problem using subset because it gives me “gridHeight >=2” error. The fact is that it shows this error only if I try to use subset in my region of interest, if I use subset in another zone of the image it works without problem.

I installed SNAP in two different computers and right now in both I have the same error.

I have already tried to clean the cache because to me it seems there’s something in the memory that stop the process when it is used in that region but it didn’t work. I also tried uninstalling SNAP and installing it again but it gives me always the same error only for that region of the image. I sent the images to another user to check if they are the problem but on another pc it does not report the error.

Do you have any suggestion?
Thanks for the help.

This sounds like as if the overlap of the product boundary with the region you specify is very small.
Did the others you have sent the images to also used the same region?
Can you increase your region of interest a bit?

Yes, the region that I need is really small but in the past I hadn’t problem subsetting it in other images.

Also yes, the others used the coordinates I gave them for the subset without errors. Actually I installed SNAP on the second computer because the first one started reporting this error and I thought it was a problem of my pc. With the second computer I worked without problem for a period and then it started giving me the same error as the first computer.

I have just tried to increse the region of interest and the subset works but I really need the small region because I have to put it in another programme.
Thank you.

It’s strange that the result is varying over time.
Are you using Sentinel-2 data?
This error only occurs when tie-point data is present in the product. Two pixels in both directions are necessary for the interpolation of the tie-points.
But Sentinel-2 does not have tie-points.

Yes I’m sure they are Sentinel-2 data. I downloaded them from Copernicus Open Access Hub: mission sentinel-2, satellite platfrom S2A/B, product type S2MSI2A.

This is the reason I don’t understand why it is not working. Also because I tried to subset the images with which I worked in the past and now I cannot subset them anymore. At first I thought it was my computer but now having two computers with the same error I don’t know what it could be.

I don’t know if this can help but it is the error that occurr:

java.lang.IllegalArgumentException: gridHeight >= 2
at com.bc.ceres.core.Assert.argument(
at org.esa.snap.core.datamodel.TiePointGrid.(
at org.esa.snap.core.datamodel.TiePointGrid.(
at org.esa.snap.core.datamodel.TiePointGrid.(
at org.esa.snap.core.datamodel.TiePointGrid.createSubset(
at org.esa.snap.core.dataio.ProductSubsetBuilder.addTiePointGridsToProduct(
at org.esa.snap.core.dataio.ProductSubsetBuilder.createProduct(
at org.esa.snap.core.dataio.ProductSubsetBuilder.readProductNodesImpl(
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(
at org.esa.snap.core.dataio.AbstractProductBuilder.readProductNodes(
at org.esa.snap.core.dataio.ProductSubsetBuilder.createProductSubset(
at org.esa.snap.core.dataio.ProductSubsetBuilder.createProductSubset(
at org.esa.snap.core.datamodel.Product.createSubset(
[catch] at org.esa.snap.rcp.subset.CreateSubsetAction.createSubset(
at org.esa.snap.rcp.subset.CreateSubsetAction.actionPerformed(
at org.openide.awt.InjectorExactlyOne.actionPerformed(
at org.openide.awt.ContextAction$Performer.actionPerformed(
at org.openide.awt.ContextManager.actionPerformed(
at org.openide.awt.ContextAction.actionPerformed(
at org.openide.util.actions.ActionInvoker$
at org.openide.util.actions.ActionInvoker.doPerformAction(
at org.openide.util.actions.ActionInvoker.invokeAction(
at org.openide.awt.GeneralAction$BaseDelAction.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.AbstractButton.doClick(
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$500(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at org.netbeans.core.TimableEventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(