insarlab / MintPy

Miami InSAR time-series software in Python
https://mintpy.readthedocs.io
Other
608 stars 259 forks source link

A bug in asc_desc2horz_vert.py #788

Closed Chong-You closed 2 years ago

Chong-You commented 2 years ago

Description of the problem The error raises due to the undefined variables when the differences between two reference points for two tracks exceed the threshold.

Full script that generated the error

for fname, ref_lalo, ref_yx in zip(inps.file, [ref_lalo1, ref_lalo2], [ref_yx1, ref_yx2]):

Full error message

  File "/home/user/Software/InSAR/MintPy_1.3.3/mintpy/asc_desc2horz_vert.py", line 383, in <module>
    main(sys.argv[1:])
  File "/home/user/Software/InSAR/MintPy_1.3.3/mintpy/asc_desc2horz_vert.py", line 374, in main
    inps = cmd_line_parse(iargs)
  File "/home/user/Software/InSAR/MintPy_1.3.3/mintpy/asc_desc2horz_vert.py", line 115, in cmd_line_parse
    for fname, ref_lalo, ref_yx in zip(inps.file, [ref_lalo1, ref_lalo2], [ref_yx1, ref_yx2]):
NameError: name 'ref_lalo1' is not defined. Did you mean: 'ref_lalo'?

Solution

for fname, ref_lalo  in zip(inps.file, [[ref_lat1,ref_lon1], [ref_lat2,ref_lon2]]):

Since ref_yx is not used in the whole script, I remove it.

System information

welcome[bot] commented 2 years ago

👋 Thanks for opening your first issue here! Please filled out the template with as much details as possible. We appreciate that you took the time to contribute! Make sure you read our contributing guidelines.

Chong-You commented 2 years ago

Oh, I just found that this bug has been fixed on May 10.

yunjunz commented 2 years ago

Thank you for reaching out and solutions.