You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am new in MintPy (but not in InSAR), I installed MintPy and tested with provided example datssets. It seems that everything is ok.
I am trying now with my owsn dataset:
The set contains S1 25 interferogram combinations SBAS processed with SNAPHU. ETAD corrected, geocoded, croped to small area. I prepared a data structire the same as in 'Sentinel-1 on Western Cape, South Africa with SNAP' dataset.
It seems that MinPy reads my dataset correctly:
processor : snap
SAR platform/sensor : unknown from project name "test_S1"
updateMode : True
compression: default
multilook x/ystep: 1/1
multilook method : nearest
input bounding box of interest in lat/lon: (104.5219041642623, 22.149965890259857, 104.54605118955719, 22.112487694750072)
box to read for datasets in y/x: (0, 0, 192, 298)
searching geometry files info
input data files:
height : ..\dem_tc.data\dem.img
All datasets exists in file geometryGeo.h5 with same size as required, no need to re-load.
searching interferogram pairs info
input data files:
unwrapPhase : ../interferograms///Unw*.img
coherence : ../interferograms///coh_*.img
number of unwrapPhase : 25
number of coherence : 25
All date12 exists in file ifgramStack.h5 with same size as required, no need to re-load.
Then problem appears when:
******************** 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
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
And file 'coherenceSpatialAvg.txt' contains only one pair instead of 25:
Data file: ifgramStack.h5
Mask file: None
AOI box: (0, 0, 192, 298)
Threshold: None
DATE12 Mean Btemp/days Bperp/m Num
20250101_20250113 0.2767 12 -345.5 0
Where is the problem?
Any suggestions appreciated.
Configuration: MintPy installed with conda on Windows11
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new in MintPy (but not in InSAR), I installed MintPy and tested with provided example datssets. It seems that everything is ok.
I am trying now with my owsn dataset:
The set contains S1 25 interferogram combinations SBAS processed with SNAPHU. ETAD corrected, geocoded, croped to small area. I prepared a data structire the same as in 'Sentinel-1 on Western Cape, South Africa with SNAP' dataset.
It seems that MinPy reads my dataset correctly:
processor : snap
SAR platform/sensor : unknown from project name "test_S1"
prepare metadata files for snap products
prep_snap.py "../interferograms///Unw*.img"
prep_snap.py "../interferograms///coh_.img"
prep_snap.py "../dem/dem*.img"
updateMode : True
compression: default
multilook x/ystep: 1/1
multilook method : nearest
input bounding box of interest in lat/lon: (104.5219041642623, 22.149965890259857, 104.54605118955719, 22.112487694750072)
box to read for datasets in y/x: (0, 0, 192, 298)
searching geometry files info
input data files:
height : ..\dem_tc.data\dem.img
All datasets exists in file geometryGeo.h5 with same size as required, no need to re-load.
searching interferogram pairs info
input data files:
unwrapPhase : ../interferograms///Unw*.img
coherence : ../interferograms///coh_*.img
number of unwrapPhase : 25
number of coherence : 25
All date12 exists in file ifgramStack.h5 with same size as required, no need to re-load.
Then problem appears when:
******************** 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
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
And file 'coherenceSpatialAvg.txt' contains only one pair instead of 25:
Data file: ifgramStack.h5
Mask file: None
AOI box: (0, 0, 192, 298)
Threshold: None
DATE12 Mean Btemp/days Bperp/m Num
20250101_20250113 0.2767 12 -345.5 0
Where is the problem?
Any suggestions appreciated.
Configuration: MintPy installed with conda on Windows11
Beta Was this translation helpful? Give feedback.
All reactions