Skip to content

Network Inversion Problem #1502

Description

@hariiirs

I am processing 1231 interferograms using Mintpy (python 3.14), while inverting the network, the following error message resulted -

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

ifgram_inversion.py ~/output/inputs/ifgramStack.h5 -t ~/output/smallbaselineApp.cfg --update
read input option from template file: ~output/smallbaselineApp.cfg
use dataset "unwrapPhase" by default

update mode: ON

  1. output file timeseries.h5 is NOT fully written.
    run or skip: run.
    save the original settings of ['OMP_NUM_THREADS', 'OPENBLAS_NUM_THREADS', 'MKL_NUM_THREADS', 'NUMEXPR_NUM_THREADS', 'VECLIB_MAXIMUM_THREADS']
    set OMP_NUM_THREADS = 1
    set OPENBLAS_NUM_THREADS = 1
    set MKL_NUM_THREADS = 1
    set NUMEXPR_NUM_THREADS = 1
    set VECLIB_MAXIMUM_THREADS = 1
    reference pixel in y/x: (226, 392) from dataset: unwrapPhase

least-squares solution with L2 min-norm on: deformation velocity
minimum redundancy: 1.0
weight function: var
calculate covariance: False
mask: no

number of interferograms: 1231
number of acquisitions : 271
number of lines : 515
number of columns : 772

create HDF5 file: timeseries.h5 with w mode
create dataset : date of |S8 in size of (271,) with compression = None
create dataset : bperp of <class 'numpy.float32'> in size of (271,) with compression = None
create dataset : timeseries of <class 'numpy.float32'> in size of (271, 515, 772) with compression = None
close HDF5 file: timeseries.h5

create HDF5 file: temporalCoherence.h5 with w mode
create dataset : temporalCoherence of <class 'numpy.float32'> in size of (515, 772) with compression = None
close HDF5 file: temporalCoherence.h5

create HDF5 file: numInvIfgram.h5 with w mode
create dataset : mask of <class 'numpy.float32'> in size of (515, 772) with compression = None
close HDF5 file: numInvIfgram.h5
maximum memory size: 4.0E+00 GB
split 515 lines into 2 patches for processing
with each patch up to 260 lines

------- processing patch 1 out of 2 --------------
box width: 772
box length: 260
calculating weight from spatial coherence ...
reading coherence in (0, 0, 772, 260) * 1231 ...
convert coherence to weight in chunks of 100000 pixels: 3 chunks in total ...
convert coherence to weight using inverse of phase variance
with phase PDF for distributed scatterers from Tough et al. (1995)
number of independent looks L=10
chunk 1 / 3
chunk 2 / 3
chunk 3 / 3
reading unwrapPhase in (0, 0, 772, 260) * 1231 ...
use input reference value
convert zero value in unwrapPhase to NaN (no-data value)
skip pixels (on the water) with zero value in file: waterMask.h5
skip pixels with unwrapPhase = NaN in all interferograms
skip pixels with zero value in file: avgSpatialCoh.h5
number of pixels to invert: 196093 out of 200720 (97.7%)
estimating time-series via WLS pixel-by-pixel ...
TypeError: only 0-dimensional arrays can be converted to Python scalars

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/user/miniconda3/envs/mint/bin/smallbaselineApp.py", line 10, in
sys.exit(main())
~~~~^^
File "/home/user/miniconda3/envs/mint/lib/python3.14/site-packages/mintpy/cli/smallbaselineApp.py", line 209, in main
run_smallbaselineApp(inps)
~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/home/user/miniconda3/envs/mint/lib/python3.14/site-packages/mintpy/smallbaselineApp.py", line 1155, in run_smallbaselineApp
app.run(steps=inps.runSteps)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/home/user/miniconda3/envs/mint/lib/python3.14/site-packages/mintpy/smallbaselineApp.py", line 923, in run
self.run_network_inversion(sname)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/home/user/miniconda3/envs/mint/lib/python3.14/site-packages/mintpy/smallbaselineApp.py", line 384, in run_network_inversion
mintpy.cli.ifgram_inversion.main(iargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/home/user/miniconda3/envs/mint/lib/python3.14/site-packages/mintpy/cli/ifgram_inversion.py", line 274, in main
run_ifgram_inversion(inps)
~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/home/user/miniconda3/envs/mint/lib/python3.14/site-packages/mintpy/ifgram_inversion.py", line 1103, in run_ifgram_inversion
ts, ts_cov, inv_quality, num_inv_obs = run_ifgram_inversion_patch(**data_kwargs)[:-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/user/miniconda3/envs/mint/lib/python3.14/site-packages/mintpy/ifgram_inversion.py", line 865, in run_ifgram_inversion_patch
inv_quality[idx] = inv_quali
~~~~~~~~~~~^^^^^
ValueError: setting an array element with a sequence.

Kindly suggest the possible solution.
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions