This error happens when doing the correction using GACOS:
ValueError: zero-size array to reduction operation minimum which has no identity
More details:
******************** step - correct_troposphere ********************
Input data seems to be geocoded. Lookup file not needed.
tropospheric delay correction with gacos approach
tropo_gacos.py -f /media/tidop/18TB/SBAS/reganosa_DESC_125/mintpy01/timeseries.h5 -g /media/tidop/18TB/SBAS/reganosa_DESC_125/mintpy01/inputs/geometryGeo.h5 -o /media/tidop/18TB/SBAS/reganosa_DESC_125/mintpy01/timeseries_GACOS.h5 --dir ./GACOS
Use GACOS products at directory: /media/tidop/18TB/SBAS/reganosa_DESC_125/mintpy01/GACOS
update mode: ON
output file: /media/tidop/18TB/SBAS/reganosa_DESC_125/mintpy01/inputs/GACOS.h5
1) output file either do NOT exist or is NOT newer than all ZTD files.
run or skip: run
--------------------------------------------------
create HDF5 file: /media/tidop/18TB/SBAS/reganosa_DESC_125/mintpy01/inputs/GACOS.h5 with w mode
create dataset : date of |S8 in size of (301,) with compression = None
create dataset : timeseries of <class 'numpy.float32'> in size of (301, 325, 775) with compression = None
close HDF5 file: /media/tidop/18TB/SBAS/reganosa_DESC_125/mintpy01/inputs/GACOS.h5
read incidenceAngle from file: /media/tidop/18TB/SBAS/reganosa_DESC_125/mintpy01/inputs/geometryGeo.h5
Traceback (most recent call last):
File "/home/tidop/anaconda3/envs/mintpy/bin/smallbaselineApp.py", line 8, in <module>
sys.exit(main())
File "/home/tidop/anaconda3/envs/mintpy/lib/python3.8/site-packages/mintpy/smallbaselineApp.py", line 1270, in main
app.run(steps=inps.runSteps)
File "/home/tidop/anaconda3/envs/mintpy/lib/python3.8/site-packages/mintpy/smallbaselineApp.py", line 1059, in run
self.run_tropospheric_delay_correction(sname)
File "/home/tidop/anaconda3/envs/mintpy/lib/python3.8/site-packages/mintpy/smallbaselineApp.py", line 791, in run_tropospheric_delay_correction
mintpy.tropo_gacos.main(iargs)
File "/home/tidop/anaconda3/envs/mintpy/lib/python3.8/site-packages/mintpy/tropo_gacos.py", line 361, in main
calculate_delay_timeseries(tropo_file=inps.tropo_file,
File "/home/tidop/anaconda3/envs/mintpy/lib/python3.8/site-packages/mintpy/tropo_gacos.py", line 306, in calculate_delay_timeseries
delay = get_delay_geo(ztd_file, atr, cos_inc_angle)
File "/home/tidop/anaconda3/envs/mintpy/lib/python3.8/site-packages/mintpy/tropo_gacos.py", line 129, in get_delay_geo
delay = resize(delay, (length, width),
File "/home/tidop/anaconda3/envs/mintpy/lib/python3.8/site-packages/skimage/transform/_warps.py", line 164, in resize
img_bounds = np.array([image.min(), image.max()]) if clip else None
File "/home/tidop/anaconda3/envs/mintpy/lib/python3.8/site-packages/numpy/core/_methods.py", line 44, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
Any idea??