-
-
Notifications
You must be signed in to change notification settings - Fork 135
Description
Describe the problem you encountered
Provide a brief description of the issue you're facing.
OS and software version
Please specify your operating system and the version of PyGMTSAR you are using, if applicable.
- OS:
- ubuntu
- PyGMTSAR version:
- last
Steps to reproduce the problem
Reprodice Golden Valley Subsidence out of google colab
Log file
Syncing NetCDF 2D/3D Dataset: 100%|█████████████| 52/52 [00:43<00:00, 1.18it/s]
📌 SBAS salvati in /workspace/SBAS_cumulative_displacement.png
NaN: 0.0 / 16995482.0 (0.00%)
Inf: 0.0 / 16995482.0 (0.00%)
Traceback (most recent call last):
File "/workspace/Subsidence_1.py", line 261, in
processing_sub_1.run_dask_processing(sbas, AOI, DEM)
File "/workspace/processing_sub_1.py", line 174, in run_dask_processing
velocity_sbas = sbas.velocity(disp_sbas)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pygmtsar/Stack_detrend.py", line 1098, in velocity
velocity = nanoseconds_per_year*data.polyfit('date', 1).polyfit_coefficients .sel(degree=1).astype(np.float32).rename('trend')
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/xarray/core/dataarray.py", line 5801, in polyfit
return self._to_temp_dataset().polyfit(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/xarray/core/dataset.py", line 89 20, in polyfit
return polyfit_impl(self, dim, deg, skipna, rcond, w, full, cov)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/xarray/computation/fit.py", line 203, in polyfit
rank = np.linalg.matrix_rank(lhs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/numpy/linalg/_linalg.py", line 2 108, in matrix_rank
S = svd(A, compute_uv=False, hermitian=hermitian)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/numpy/linalg/_linalg.py", line 1 822, in svd
s = _umath_linalg.svd(a, signature=signature)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/numpy/linalg/_linalg.py", line 1 13, in _raise_linalgerror_svd_nonconvergence
raise LinAlgError("SVD did not converge")
numpy.linalg.LinAlgError: SVD did not converge