Unable to read the conncomp file generated by Snaphu for unwrapping error correction, with the processor being GAMMA.

81 views
Skip to first unread message

Aoqing Guo

unread,
Mar 20, 2025, 6:57:27 PMMar 20
to MintPy

Dear MintPy Developers,

I am currently using smallbaselineApp.py and would like to apply unwrapping error correction on files generated by Gamma. However, I am unable to read and recognize the conncomp files properly. I am seeking your assistance to resolve this issue.

My Setup:
  • File Structure:
    interferograms/data1-data2/diff_filt_20191219-20191231_4rlks.unw.conncomp
  • Configuration File Setting:
    mintpy.load.connCompFile = ../interferograms/*/diff_filt_*.unw.conncomp
  • Error Message:
    prep_gamma.py "../interferograms/*/diff_filt_*.unw" --dem "../geometry/sim_*_4rlks.rdc.dem"
    prep_gamma.py "../interferograms/*/filt_*.cor" --dem "../geometry/sim_*_4rlks.rdc.dem"
    prep_gamma.py "../interferograms/*/diff_filt_*.unw.conncomp" --dem "../geometry/sim_*_4rlks.rdc.dem"
    Traceback (most recent call last):
      File "/home/user/anaconda3/envs/mintpy/bin/smallbaselineApp.py", line 10, in <module>
        sys.exit(main())
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/cli/smallbaselineApp.py", line 209, in main
        run_smallbaselineApp(inps)
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/smallbaselineApp.py", line 1155, in run_smallbaselineApp
        app.run(steps=inps.runSteps)
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/smallbaselineApp.py", line 908, in run
        self.run_load_data(sname)
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/smallbaselineApp.py", line 176, in run_load_data
        mintpy.cli.load_data.main(iargs)
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/cli/load_data.py", line 123, in main
        load_data(inps)
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/load_data.py", line 812, in load_data
        prepare_metadata(iDict)
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/load_data.py", line 636, in prepare_metadata
        prep_module.main(iargs)
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/cli/prep_gamma.py", line 158, in main
        inps = cmd_line_parse(iargs)
      File "/home/user/anaconda3/envs/mintpy/lib/python3.10/site-packages/mintpy/cli/prep_gamma.py", line 146, in cmd_line_parse
        raise ValueError(msg)
    ValueError: unsupported input file extension: .conncomp
    supported file extensions: ['.unw', '.cor', '.int', '.dem', '.hgt_sim', '*to_rdc', '*2_rdc', '*2rdc']
Troubleshooting Steps Taken:

I tried running smallbaselineApp.py without setting:

mintpy.unwrapError.method = phase_closure

In this case, the script runs successfully, and I can obtain results. However, when I enable unwrapping error correction, the script fails to recognize the conncomp file and does not proceed.

I have attached the necessary files for reference:

  • 0-*: Files that fail to run (require unwrapping error correction).
  • 1-*: Files that successfully run (without unwrapping error correction).

Could you please help me identify the issue and provide guidance on how to correctly load and use the conncomp files for unwrapping error correction?

Thank you in advance for your time and assistance!

Best regards,

Aoqing

0-geometry.png
0-interferograms.png
1-coherenceMatrix.pdf
1-smallbaselineApp.cfg
0-smallbaselineApp.cfg
0-maskConnComp.png

Zhang Yunjun

unread,
Jun 10, 2025, 11:23:35 AMJun 10
to MintPy
Hi Aoqing,

If you have the connected components files for the Gamma products, the support should be easy to add. Please feel free to open an issue on GitHub, I will be more than happy to help implementing this functionality.

Cheers,
Yunjun

Aoqing Guo

unread,
Jun 10, 2025, 1:21:03 PMJun 10
to min...@googlegroups.com
Hi Yuanjun,

Thank you very much for your help.
I have uploaded the issue description and related code links on GitHub. (https://github.com/insarlab/MintPy/issues/1375)
I would greatly appreciate it if you could assist me when you have some free time.  

Best,
Aoqing


--
You received this message because you are subscribed to the Google Groups "MintPy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mintpy+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mintpy/5173c797-851a-40b9-aff4-a2fa0f404126n%40googlegroups.com.

Aoqing Guo

unread,
Jun 10, 2025, 1:22:45 PMJun 10
to min...@googlegroups.com
Hi Yunjun(So sorry for calling you by the wrong name at last email),

Thank you very much for your help.
I have uploaded the issue description and related code links on GitHub. (https://github.com/insarlab/MintPy/issues/1375)
I would greatly appreciate it if you could assist me when you have some free time.  

Best,
Aoqing
Reply all
Reply to author
Forward
0 new messages