Error

48 views
Skip to first unread message

Zicheng Huang

unread,
Feb 25, 2019, 12:19:12 AM2/25/19
to PySAR
Dear all,

When I run this command, "unwrap_error_hybrid.py -h", an error occurs on my computer. I want to ask how to solve it. Thanks you!

/media/hzc/HDD/Iran-7.3/PySAR-Stack/FernandinaSenDT128/PYSAR$  unwrap_error_hybrid.py -h

Traceback (most recent call last):
  File "/home/hzc/Software/PySAR/pysar/unwrap_error_hybrid.py", line 23, in <module>
    from pysar.unwrap_error_phase_closure import run_unwrap_error_closure
ImportError: cannot import name 'run_unwrap_error_closure'

Best regards
Zicheng Huang

Yunjun Zhang

unread,
Feb 25, 2019, 10:32:27 AM2/25/19
to PySAR
Hi Zicheng,

unwrap_error_hybrid.py is still in development and not ready to be used yet, it will be removed from the current module in the next code update. Please use unwrap_error_bridging.py or unwrap_error_phase_closure.py instead, and don't hesitate to let me you know if you encounter any problem there.

regards,

Yunjun

Zicheng Huang

unread,
Feb 25, 2019, 8:19:02 PM2/25/19
to PySAR
Dear Yunjun

Thank you very much for your answer. But I have this problem when running troposphereic correction.

command line: tropcor_pyaps.py -f timeseries.h5 --model ECMWF -g ./INPUTS/geometryRadar.h5 -w ../WEATHER

result:
weather model: ECMWF
output tropospheric delay file: INPUTS/ECMWF.h5
weather data directory: ../WEATHER
time of cloest available product: 12:00 UTC
read date list from timeseries file: timeseries.h5
reference pixel: [76, 156]
geocoded: False
converting DEM/incAngle for PyAPS to read
converting lat for PyAPS to read
converting lon for PyAPS to read
------------------------------------------------------------------------------
downloading weather model data using PyAPS ...
number of grib files to download: 98
------------------------------------------------------------------------------
calcualting delay for each date using PyAPS (Jolivet et al., 2011; 2014) ...
 
convert to relative phase delay with reference date: 20141213
Traceback (most recent call last):
  File "/home/hzc/Software/PySAR/pysar/tropcor_pyaps.py", line 485, in <module>
    main()
  File "/home/hzc/Software/PySAR/pysar/tropcor_pyaps.py", line 471, in main
    get_delay_timeseries(inps, atr)
  File "/home/hzc/Software/PySAR/pysar/tropcor_pyaps.py", line 418, in get_delay_timeseries
    inps.ref_idx = date_list.index(inps.ref_date)
ValueError: '20141213' is not in list

If you can help me solve it, I will be very grateful!

Best regards
Zicheng Huang

在 2019年2月25日星期一 UTC+8下午1:19:12,Zicheng Huang写道:

Yunjun Zhang

unread,
Feb 25, 2019, 8:38:33 PM2/25/19
to PySAR
Hi Zicheng,

Could you check if you have successfully download the *.grb files in “../WEATHER” directory? I guess your PyAPS may not be working. If so, please check the previous post: https://groups.google.com/forum/?nomobile=true#!topic/py-sar/QlMROoVxs30

Please note that you also need an account on ECMWF to be able to download the ERA-Interim dataset, as described in Caltech’s website.

I attached the “INPUTS/ECMWF.h5” file in the example dataset, and pysarApp.py will search for it and use it directly, thus the tropospheric delay correction should work if you run pysarApp.py; while tropcor_pyaps.py calculate and re-generate it from the downloaded grib files.

Yunjun

--
You received this message because you are subscribed to the Google Groups "PySAR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py-sar+un...@googlegroups.com.
To post to this group, send email to py-...@googlegroups.com.
Visit this group at https://groups.google.com/group/py-sar.
For more options, visit https://groups.google.com/d/optout.

Zicheng Huang

unread,
Feb 26, 2019, 2:33:22 AM2/26/19
to PySAR
Dear Yunjun

Thank you very much for your help! I have solved this problem under your reminder!

Best regards
Zicheng Huang

在 2019年2月25日星期一 UTC+8下午1:19:12,Zicheng Huang写道:
Dear all,
Reply all
Reply to author
Forward
0 new messages