I tried pairs of the same orbit. I can perform the range shift for scenes recorded before 20150602 but not after this date.
I also tried different windows like 512/4 or 256/8
Same problem with high Registration Window Size (=1024) and high Interpolation Factor (=16).
When debuging, anomaly appears in the getSlaveGCPShift function and more particulary with the getData() method. Reading image data never stops: infinite loop.
private boolean getSlaveGCPShift(final double[] shift, final double[] mI, final double[] sI) {
try {
final PlanarImage crossCorrelatedImage = computeCrossCorrelatedImage(mI, sI);
final int w = crossCorrelatedImage.getWidth();
final int h = crossCorrelatedImage.getHeight();
final Raster idftData = crossCorrelatedImage.getData();
please forget about the different dates .n erro on my site - I mixed up
two different regions:
However,
I recognized that this pair is an open water section with some sea
ice. So there shouldn’t be anything to match. That might cause the
problem. However if there is nothing to match than the range shift
should be set to zero and processing should continue …
I tried another pair and again I do get error messages
(1)
Range-Shift: estimateOffset failed.
estimateOffset: java.lang.NullPointerException
Exception in thread “Thread-12” org.esa.snap.framework.gpf.OperatorException: estimateOffset: java.lang.NullPointerException
at org.esa.snap.gpf.OperatorUtils.catchOperatorException(OperatorUtils.java:385)
at org.esa.s1tbx.sentinel1.gpf.AzimuthShiftOp$1.run(AzimuthShiftOp.java:369)
(2)
getSlaveGCPShift failed null
getSlaveGCPShift failed null
getSlaveGCPShift failed null
getSlaveGCPShift failed null
azOffset = -4.9304852401162995E-5
azOffset = 2.1363278996447047E-4
azOffset = 3.985068481815185E-4
azOffset = -2.6006126171956525E-4
azOffset = -1.7115592108634988E-5
azOffset = 6.166955136314377E-4
azOffset = -3.6492286459823144E-4
azOffset = -4.6220457976449354E-4
org.esa.snap.framework.gpf.OperatorException: Cannot construct DataBuffer.
at org.esa.snap.framework.gpf.graph.GraphProcessor$GPFImagingListener.errorOccurred(GraphProcessor.java:373)
at com.sun.media.jai.util.SunTileScheduler.sendExceptionToListener(SunTileScheduler.java:1654)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:929)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at com.sun.media.jai.opimage.TranslateIntOpImage.getTile(TranslateIntOpImage.java:140)
at com.sun.media.jai.opimage.TranslateIntOpImage.getTile(TranslateIntOpImage.java:140)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2098)
at com.sun.media.jai.opimage.PeriodicShiftOpImage.computeTile(PeriodicShiftOpImage.java:127)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at javax.media.jai.PlanarImage.cobbleDouble(PlanarImage.java:3368)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2197)
at javax.media.jai.UntiledOpImage.computeTile(UntiledOpImage.java:220)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:967)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at javax.media.jai.PlanarImage.cobbleDouble(PlanarImage.java:3368)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2197)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2029)
at javax.media.jai.RenderedOp.getData(RenderedOp.java:2277)
at org.esa.s1tbx.insar.gpf.coregistration.CoarseRegistration.getSlaveGCPShift(CoarseRegistration.java:241)
at org.esa.s1tbx.insar.gpf.coregistration.CoarseRegistration.getCoarseSlaveGCPPosition(CoarseRegistration.java:155)
at org.esa.s1tbx.sentinel1.gpf.RangeShiftOp.estimateAzRgOffsets(RangeShiftOp.java:421)
at org.esa.s1tbx.sentinel1.gpf.RangeShiftOp.access$000(RangeShiftOp.java:63)
at org.esa.s1tbx.sentinel1.gpf.RangeShiftOp$1.run(RangeShiftOp.java:310)
Caused by: java.lang.RuntimeException: Cannot construct DataBuffer.
at com.sun.media.jai.util.DataBufferUtils.constructDataBuffer(DataBufferUtils.java:140)
at com.sun.media.jai.util.DataBufferUtils.createDataBufferDouble(DataBufferUtils.java:301)
at javax.media.jai.ComponentSampleModelJAI.createDataBuffer(ComponentSampleModelJAI.java:282)
at javax.media.jai.RecyclingTileFactory.createTile(RecyclingTileFactory.java:397)
at javax.media.jai.PlanarImage.createWritableRaster(PlanarImage.java:1995)
at javax.media.jai.OpImage.createTile(OpImage.java:1991)
at com.sun.media.jai.opimage.BorderOpImage.computeTile(BorderOpImage.java:217)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
… 24 more
Error: Cannot construct DataBuffer.
The pair is:
S1A_IW_SLC__1SSH_20150512T080202_20150512T080229_005885_007947_84BA.zip
S1A_IW_SLC__1SSH_20150524T080203_20150524T080230_006060_007D64_21AE.zip