Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tops_insar_burst fails with RuntimeError: Image file is too small during preprocessing #269

Open
asjohnston-asf opened this issue Feb 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@asjohnston-asf
Copy link
Member

asjohnston-asf commented Feb 8, 2025

I've observed this consistently for bursts processed with Sentinel IPF v002.36 (the earliest processor version from the first 5ish months after launch in 2014). I haven't encountered it with scenes generated by later processor versions, but I haven't done a thorough inventory.

Note Access window out of range in RasterIO(). Requested (0,13040) of size 21602x1630 on raster of 21602x1630. is the original error logged for each burst, that's likely the underlying issue.

$ insar_tops_burst --reference S1_122710_IW1_20141220T160104_VV_89B8-BURST --secondary S1_122710_IW1_20150101T160104_VV_1AF4-BURST

...

Step processing
Running step startup
None
The currently supported sensors are:  ['SENTINEL1']
Dumping the application's pickle object _insar to file  PICKLE/startup
The remaining steps are (in order):  ['preprocess', 'computeBaselines', 'verifyDEM', 'topo', 'subsetoverlaps', 'coarseoffsets', 'coarseresamp', 'overlapifg', 'prepesd', 'esd', 'rangecoreg', 'fineoffsets', 'fineresamp', 'ion', 'burstifg', 'mergebursts', 'filter', 'unwrap', 'unwrap2stage', 'geocode', 'denseoffsets', 'filteroffsets', 'geocodeoffsets']
Running step preprocess
Input XML files:  ['S1A_IW_SLC__1SDV_20141220T160041_20141220T160109_003805_0048BB_89B8.SAFE/annotation/s1a-iw1-slc-vv-20141220t160042-20141220t160107-003805-0048bb-004.xml']
Input TIFF files:  ['S1A_IW_SLC__1SDV_20141220T160041_20141220T160109_003805_0048BB_89B8.SAFE/measurement/s1a-iw1-slc-vv-20141220t160042-20141220t160107-003805-0048bb-004.tiff']
Manifest files:  ['S1A_IW_SLC__1SDV_20141220T160041_20141220T160109_003805_0048BB_89B8.SAFE/manifest.safe']
Setting IPF version to :  002.36
Extracting orbit from Orbit File:  orbits/S1A_OPER_AUX_POEORB_OPOD_20210305T042951_V20141219T225944_20141221T005944.EOF
Number of Bursts before cropping:  9
Number of Bursts after cropping:  1
Could not extract swath 1 from ['S1A_IW_SLC__1SDV_20141220T160041_20141220T160109_003805_0048BB_89B8.SAFE']
Generated error:  s1a-iw1-slc-vv-20141220t160042-20141220t160107-003805-0048bb-004.tiff, band 1: Access window out of range in RasterIO().  Requested
(0,13040) of size 21602x1630 on raster of 21602x1630.
Input XML files:  ['S1A_IW_SLC__1SDV_20150101T160041_20150101T160109_003980_004CA8_1AF4.SAFE/annotation/s1a-iw1-slc-vv-20150101t160042-20150101t160107-003980-004ca8-004.xml']
Input TIFF files:  ['S1A_IW_SLC__1SDV_20150101T160041_20150101T160109_003980_004CA8_1AF4.SAFE/measurement/s1a-iw1-slc-vv-20150101t160042-20150101t160107-003980-004ca8-004.tiff']
Manifest files:  ['S1A_IW_SLC__1SDV_20150101T160041_20150101T160109_003980_004CA8_1AF4.SAFE/manifest.safe']
Setting IPF version to :  002.36
Extracting orbit from Orbit File:  orbits/S1A_OPER_AUX_POEORB_OPOD_20210305T081935_V20141231T225944_20150102T005944.EOF
Number of Bursts before cropping:  9
Number of Bursts after cropping:  1
Could not extract swath 1 from ['S1A_IW_SLC__1SDV_20150101T160041_20150101T160109_003980_004CA8_1AF4.SAFE']
Generated error:  s1a-iw1-slc-vv-20150101t160042-20150101t160107-003980-004ca8-004.tiff, band 1: Access window out of range in RasterIO().  Requested
(0,13040) of size 21603x1630 on raster of 21603x1630.
2025-02-07 15:03:31,112 - isce.topsinsar.runPreprocessor - INFO - 
####################################################################################################
    runPreprocessor
----------------------------------------------------------------------------------------------------
common.Input list of swaths to process:  = [1]
####################################################################################################
Dumping the application's pickle object _insar to file  PICKLE/preprocess
The remaining steps are (in order):  ['computeBaselines', 'verifyDEM', 'topo', 'subsetoverlaps', 'coarseoffsets', 'coarseresamp', 'overlapifg', 'prepesd', 'esd', 'rangecoreg', 'fineoffsets', 'fineresamp', 'ion', 'burstifg', 'mergebursts', 'filter', 'unwrap', 'unwrap2stage', 'geocode', 'denseoffsets', 'filteroffsets', 'geocodeoffsets']
Traceback (most recent call last):
  File "/home/asjohnston/mambaforge/envs/hyp3-isce2/bin/insar_tops_burst", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/asjohnston/src/hyp3-isce2/src/hyp3_isce2/insar_tops_burst.py", line 311, in main
    insar_tops_single_burst(
  File "/home/asjohnston/src/hyp3-isce2/src/hyp3_isce2/insar_tops_burst.py", line 169, in insar_tops_single_burst
    insar_tops_burst(
  File "/home/asjohnston/src/hyp3-isce2/src/hyp3_isce2/insar_tops_burst.py", line 120, in insar_tops_burst
    topsapp.swap_burst_vrts()
  File "/home/asjohnston/src/hyp3-isce2/src/hyp3_isce2/topsapp.py", line 132, in swap_burst_vrts
    vrt = gdal.Open(vrt_path)
          ^^^^^^^^^^^^^^^^^^^
  File "/home/asjohnston/mambaforge/envs/hyp3-isce2/lib/python3.11/site-packages/osgeo/gdal.py", line 4716, in Open
    return _gdal.Open(*args)
           ^^^^^^^^^^^^^^^^^
RuntimeError: Image file is too small
@asjohnston-asf asjohnston-asf added the bug Something isn't working label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant