Hello Yunjun and Sayyed
In order to get the speed values in .kml format using hyp3, I have performed some extra steps. First cut the .tif image according to my study area and then change the SRC of the files to EPSG:4326, I did this in order to obtain the kml output file. But now when executing the smallbaselineApp.py command the following error occurs:
prepare metadata files for hyp3 products
prep_hyp3.py "../hyp3/*/*unw_phase_clip.tif"
/home/hugoluvi/miniconda3/envs/MintPy/lib/python3.9/site-packages/osgeo/gdal.py:287: FutureWarning: Neither gdal.UseExceptions() nor gdal.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.
warnings.warn(
Traceback (most recent call last):
File "/home/hugoluvi/miniconda3/envs/MintPy/bin/smallbaselineApp.py", line 8, in <module>
sys.exit(main())
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/cli/smallbaselineApp.py", line 208, in main
run_smallbaselineApp(inps)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/smallbaselineApp.py", line 1117, in run_smallbaselineApp
app.run(steps=inps.runSteps)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/smallbaselineApp.py", line 874, in run
self.run_load_data(sname)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/smallbaselineApp.py", line 176, in run_load_data
mintpy.cli.load_data.main(iargs)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/cli/load_data.py", line 123, in main
load_data(inps)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/load_data.py", line 784, in load_data
prepare_metadata(iDict)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/load_data.py", line 633, in prepare_metadata prep_module.main(iargs)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/cli/prep_hyp3.py", line 94, in main
prep_hyp3(inps)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/prep_hyp3.py", line 126, in prep_hyp3
meta = add_hyp3_metadata(fname, meta, is_ifg=is_ifg)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/prep_hyp3.py", line 71, in add_hyp3_metadata
N, W = ut.utm2latlon(meta, W, N)
File "/home/hugoluvi/Documentos/GitHub/MintPy/src/mintpy/utils/utils0.py", line 319, in utm2latlon
zone_num = int(meta['UTM_ZONE'][:-1])
KeyError: 'UTM_ZONE'
I guess I have to make other changes to the codes, but I don't know where
Thank you very much for your comments