isce2 icon indicating copy to clipboard operation
isce2 copied to clipboard

Error: run_01_unpack_SLC - too many indices

Open chofst opened this issue 2 years ago • 5 comments

Hello,

I'm trying to generate interferograms with topsStack. I tried to download the orbits with stackSentinel.py and received the following error:

Traceback (most recent call last):
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/stackSentinel.py", line 1023, in <module>
    main(sys.argv[1:])
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/stackSentinel.py", line 985, in main
    acquisitionDates, stackReferenceDate, secondaryDates, safe_dict, updateStack = checkCurrentStatus(inps)
                                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/stackSentinel.py", line 878, in checkCurrentStatus
    acquisitionDates, stackReferenceDate, secondaryDates, safe_dict = get_dates(inps)
                                                                      ^^^^^^^^^^^^^^^
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/stackSentinel.py", line 305, in get_dates
    safeObj.get_orbit(inps.orbit_dirname, inps.work_dir)
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/Stack.py", line 1824, in get_orbit
    self.orbit =  orbitFile[0]
                  ~~~~~~~~~^^^
IndexError: list index out of range

I manually downloaded the orbits and was able to make the configs and run_files folders. However, I am now running into the following error while running step run_01_unpack_SLC:

Traceback (most recent call last):
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/SentinelWrapper.py", line 251, in <module>
    main(args.start,args.end)
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/SentinelWrapper.py", line 242, in main
    cfgParser.runCmd()
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/SentinelWrapper.py", line 54, in runCmd
    func_modules.main(self.funcParams[section])
  File "/home/celeste/pkgs/isce2/contrib/stack/topsStack/topo.py", line 112, in main
    bbox = [np.min(boxes[:,0]), np.max(boxes[:,1]), np.min(boxes[:,2]), np.max(boxes[:,3])]
                   ~~~~~^^^^^
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

Would anyone have suggestions on how to fix this? Thank you for your help.

Best regards, Celeste

chofst avatar Nov 26 '23 17:11 chofst

Hi I also encountered this same issue. I fixed it when I deleted all my orbit data and re-downloaded the orbit data again when running stackSentinel.py.

pbrotoisworo avatar Jan 19 '25 06:01 pbrotoisworo

Hi Panji, great. That worked for me. Thank you!

Best, Celeste

chofst avatar Jan 19 '25 20:01 chofst

Hi Panji, great. That worked for me. Thank you!

Best, Celeste

Hi I am having the same issue. I tried downloading the orbit files using Sentinel EOF and I obtain this exact same error (it is downloading the files from ASF) and I tried using the dloadOrbits.py script bundled with ISCE2 and then I encounter a different issue fetching missing orbits as reported in https://github.com/isce-framework/isce2/issues/421.

Would you care to share how did you download your orbit files?

afperezm avatar Dec 12 '25 08:12 afperezm

I am currently using Sentinel EOF (conda install conda-forge::sentineleof). I run the command while in my SLC dir, which reads the SLCs in the dir and saves the output to my orbit dir.

example: /data/track/SLC$ eof --save-dir /path/to/orbit/dir

(conda install conda-forge:: eofsentinel - version of Sentinel EOF did not work for me)

chofst avatar Dec 12 '25 18:12 chofst

I am currently using Sentinel EOF (conda install conda-forge::sentineleof). I run the command while in my SLC dir, which reads the SLCs in the dir and saves the output to my orbit dir.

example: /data/track/SLC$ eof --save-dir /path/to/orbit/dir

(conda install conda-forge:: eofsentinel - version of Sentinel EOF did not work for me)

Hi thank you for your answer, I have downloaded the precise orbits using Sentinel EOF from Copernicus Data Space Ecosystem as follows:

eof --search-path ./SLC/ --save-dir ./Orbits/

However, I am still having the same error after I attempt running the run_01_unpack_topo_reference step:

Traceback (most recent call last):
  File "/home/perezmaf/.conda/envs/isce2/share/isce2/topsStack/SentinelWrapper.py", line 251, in <module>
    main(args.start,args.end)
  File "/home/perezmaf/.conda/envs/isce2/share/isce2/topsStack/SentinelWrapper.py", line 242, in main
    cfgParser.runCmd()
  File "/home/perezmaf/.conda/envs/isce2/share/isce2/topsStack/SentinelWrapper.py", line 54, in runCmd
    func_modules.main(self.funcParams[section])
  File "/home/perezmaf/.conda/envs/isce2/share/isce2/topsStack/topo.py", line 112, in main
    bbox = [np.min(boxes[:,0]), np.max(boxes[:,1]), np.min(boxes[:,2]), np.max(boxes[:,3])]
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

Running ISCE2 2.6.4 on Python 3.10 I generated the interferogram workflow using the following command:

stackSentinel.py --slc_directory ./SLC/ --orbit_directory ./Orbits/ --aux_directory ./AuxDir/ --dem ./DEM/demLat_N65_N68_Lon_W137_W130.dem.wgs84 --polarization VV --workflow interferogram --swath_num '1 2 3' --bbox '65.618996 67.686104 -136.927795 -130.405411' --coregistration geometry --reference_date 20200701 --num_connections 3 --azimuth_looks 5 --range_looks 15ts

I have also attempted to manually download the orbits from https://s1qc.asf.alaska.edu/aux_poeorb/ obtaining the same error. It seems to me there is a problem parsing orbits files after the endpoint for downloading the orbits was changed.

afperezm avatar Dec 12 '25 22:12 afperezm