Hello every body and hope you are doing great, i want to ask for help please, i am using SNAP to process my Sentinel 1A data but i am having some challenges of java.io.IOException: DimapProductReader: Unable to read file as attached.
I will be greatful if my problem will get solution from you.
Hello,
Have you copied the *.dim file to another location?
The DIMAP format consists of two components. The *.dim file and the *.data directory. You need to move both.
In addition, it would be helpful if you provide the text of the error. You could have copy & pasted the text from the second screen.
Also, the log file is always useful. SNAP FAQs - How to find the log files?
java.io.FileNotFoundException: D:\RASHEED\SENTINEL-1A_KB2\SNAP-StaMPS_1\PS_Work_1\1_TopSAR-Split_Orbit\S1A_IW_SLC__1SDV_20201021T112644_20201021T112711_034894_041182_740D_Orb.data\i_IW2_VV.img (The system cannot find the file specified)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.(RandomAccessFile.java:243)
at javax.imageio.stream.FileImageInputStream.(FileImageInputStream.java:73)
at org.esa.snap.core.dataio.dimap.DimapProductReader.readBandRasterDataImpl(DimapProductReader.java:300)
Caused: java.io.IOException: DimapProductReader: Unable to read file ‘D:\RASHEED\SENTINEL-1A_KB2\SNAP-StaMPS_1\PS_Work_1\1_TopSAR-Split_Orbit\S1A_IW_SLC__1SDV_20201021T112644_20201021T112711_034894_041182_740D_Orb.data\i_IW2_VV.img’ referenced by ‘i_IW2_VV’.
at org.esa.snap.core.dataio.dimap.DimapProductReader.readBandRasterDataImpl(DimapProductReader.java:318)
at org.esa.snap.core.dataio.AbstractProductReader.readBandRasterData(AbstractProductReader.java:277)
at org.esa.snap.core.image.BandOpImage.computeProductData(BandOpImage.java:68)
at org.esa.snap.core.image.RasterDataNodeOpImage.computeRect(RasterDataNodeOpImage.java:127)
Caused: java.lang.RuntimeException
at org.esa.snap.core.image.RasterDataNodeOpImage.computeRect(RasterDataNodeOpImage.java:129)
[catch] at javax.media.jai.SourcelessOpImage.computeTile(Unknown Source)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(Unknown Source)
at javax.media.jai.OpImage.getTile(Unknown Source)
at javax.media.jai.PlanarImage.cobbleShort(Unknown Source)
at javax.media.jai.PlanarImage.getData(Unknown Source)
at com.bc.ceres.glevel.MultiLevelImage.getData(MultiLevelImage.java:64)
at org.esa.snap.core.gpf.internal.OperatorContext.getSourceTile(OperatorContext.java:449)
at org.esa.snap.core.gpf.internal.OperatorContext.getSourceTile(OperatorContext.java:435)
at org.esa.snap.core.gpf.Operator.getSourceTile(Operator.java:459)
at org.esa.s1tbx.sentinel1.gpf.BackGeocodingOp.computePartialTile(BackGeocodingOp.java:852)
at org.esa.s1tbx.sentinel1.gpf.BackGeocodingOp.computeTileStack(BackGeocodingOp.java:514)
Caused: org.esa.snap.core.gpf.OperatorException: java.io.IOException: DimapProductReader: Unable to read file ‘D:\RASHEED\SENTINEL-1A_KB2\SNAP-StaMPS_1\PS_Work_1\1_TopSAR-Split_Orbit\S1A_IW_SLC__1SDV_20201021T112644_20201021T112711_034894_041182_740D_Orb.data\i_IW2_VV.img’ referenced by ‘i_IW2_VV’. due to DimapProductReader: Unable to read file ‘D:\RASHEED\SENTINEL-1A_KB2\SNAP-StaMPS_1\PS_Work_1\1_TopSAR-Split_Orbit\S1A_IW_SLC__1SDV_20201021T112644_20201021T112711_034894_041182_740D_Orb.data\i_IW2_VV.img’ referenced by ‘i_IW2_VV’.
at org.esa.snap.engine_utilities.gpf.OperatorUtils.catchOperatorException(OperatorUtils.java:434)
at org.esa.s1tbx.sentinel1.gpf.BackGeocodingOp.computeTileStack(BackGeocodingOp.java:520)
at org.esa.snap.core.gpf.internal.OperatorImageTileStack.computeRect(OperatorImageTileStack.java:122)
at org.esa.snap.core.gpf.internal.OperatorImageTileStack.computeTile(OperatorImageTileStack.java:86)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(Unknown Source)
at javax.media.jai.OpImage.getTile(Unknown Source)
at javax.media.jai.PlanarImage.getData(Unknown Source)
at com.bc.ceres.glevel.MultiLevelImage.getData(MultiLevelImage.java:64)
at org.esa.snap.core.gpf.internal.OperatorContext.getSourceTile(OperatorContext.java:449)
at org.esa.snap.core.gpf.internal.OperatorContext.getSourceTile(OperatorContext.java:435)
at org.esa.snap.core.gpf.internal.OperatorImageTileStack.computeRect(OperatorImageTileStack.java:116)
[catch] at org.esa.snap.core.gpf.internal.OperatorImageTileStack.computeTile(OperatorImageTileStack.java:86)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(Unknown Source)
at javax.media.jai.OpImage.getTile(Unknown Source)
at com.sun.media.jai.util.RequestJob.compute(Unknown Source)
at com.sun.media.jai.util.WorkerThread.run(Unknown Source)
You haven’t answered if you have moved the file.
Have you checked the content of the directory:
D:\RASHEED\SENTINEL-1A_KB2\SNAP-StaMPS_1\PS_Work_1\1_TopSAR-Split_Orbit\S1A_IW_SLC__1SDV_20201021T112644_20201021T112711_034894_041182_740D_Orb.data
? Does it contain the i_IW2_VV.img
file?
I haven’t moved the file, but now i checked
D:\RASHEED\SENTINEL-1A_KB2\SNAP-StaMPS_1\PS_Work_1\1_TopSAR-Split_Orbit\S1A_IW_SLC__1SDV_20201021T112644_20201021T112711_034894_041182_740D_Orb.data
the i_IW2_VV.img
file is not available
So, something went wrong with previous processing. Actually, an error or at least a warning should have been displayed. Maybe you can still find out what happened. Or retry the processing.