SNAP + MintPy, step - modify_network -> IndexError

5 views
Skip to first unread message

Zbigniew Perski

unread,
Sep 7, 2025, 9:03:36 AM (3 days ago) Sep 7
to MintPy
Hi,
I am new here, I installed MintPy and tested with provided datssets. It seems that everything is ok.

I am trying now with my owsn dataset: 
S1 25 interferogram combinations SBAS processed with SNAPHU. ETAD corrected,  geocoded, small subset.
MinPy reads my dataset and then

******************** step - modify_network ********************
Input data seems to be geocoded. Lookup file not needed.

modify_network.py D:\mintpy\test2\test_S1\mintpy\inputs/ifgramStack.h5 -t D:\mintpy\test2\test_S1\mintpy\smallbaselineApp.cfg
read options from template file: smallbaselineApp.cfg
No lookup table (longitude or rangeCoord) found in files.
No input option found to remove interferogram
Keep all interferograms by enable --reset option
--------------------------------------------------
reset dataset 'dropIfgram' to True for all interferograms for file: D:\mintpy\test2\test_S1\mintpy\inputs/ifgramStack.h5
All dropIfgram are already True, no need to reset.

plot_network.py D:\mintpy\test2\test_S1\mintpy\inputs/ifgramStack.h5 -t D:\mintpy\test2\test_S1\mintpy\smallbaselineApp.cfg --nodisplay -d coherence -v 0.2 1.0
read options from template file: smallbaselineApp.cfg
read temporal/spatial baseline info from file: D:\mintpy\test2\test_S1\mintpy\inputs/ifgramStack.h5
open ifgramStack file: ifgramStack.h5
calculating spatial mean of coherence in file D:\mintpy\test2\test_S1\mintpy\inputs/ifgramStack.h5 ...
[==================================================] 1/1
write average value in space into text file: coherenceSpatialAvg.txt
Traceback (most recent call last):
  File "C:\Users\zbign\anaconda3\Scripts\smallbaselineApp.py-script.py", line 9, in <module>
    sys.exit(main())
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\cli\smallbaselineApp.py", line 209, in main
    run_smallbaselineApp(inps)
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\smallbaselineApp.py", line 1155, in run_smallbaselineApp
    app.run(steps=inps.runSteps)
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\smallbaselineApp.py", line 911, in run
    self.run_network_modification(sname)
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\smallbaselineApp.py", line 258, in run_network_modification
    mintpy.cli.plot_network.main(iargs)
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\cli\plot_network.py", line 170, in main
    plot_network(inps)
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\plot_network.py", line 148, in plot_network
    inps = read_network_info(inps)
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\plot_network.py", line 36, in read_network_info
    inps.cohList = ut.spatial_average(
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\utils\utils1.py", line 332, in spatial_average
    meanList, dateList = read_text_file(txtFile)
  File "C:\Users\zbign\anaconda3\lib\site-packages\mintpy\utils\utils1.py", line 199, in read_text_file
    meanList = [float(i) for i in txtContent[:, 1]]
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
(base) PS D:\mintpy\test2\test_S1\mintpy>

Any suggestions are appreciated

Regards


Reply all
Reply to author
Forward
0 new messages