isce-framework / isce2

InSAR Scientific Computing Environment version 2
Other
505 stars 249 forks source link

An import error when using the function of estCpxCoherence #854

Open JolinnaYoung opened 3 months ago

JolinnaYoung commented 3 months ago
Traceback(most recent call last):
  File "Coherence.py", line 39, in <module>
    estCpxCoherence('/home/E/process/merged/SLC/20220719.slc.full', '/home/E/process/merged/SLC/20220731.slc.full', '20220719_20220731.cor', alks=5, rlks=20)
  File "Coherence.py", line 9, in estCpxCoherence
    from isceobj.TopsProc.runBurstIfg import computeCoherence
  File "/home/Program/ISCE/isce/components/isceobj/TopsProc/__init__.py", line 6, in <module>
    from .TopsProc import *
  File "/home/Program/ISCE/isce/components/isceobj/TopsProc/TopsProc.py", line 9, in <module>
    from iscesys.Component.Component import Component
  File "/home/Program/ISCE/isce/components/iscesys/Component/Component.py", line 20, in <module>
    from iscesys.StdOEL.StdOELPy import _WriterInterface
  File "/home/Program/ISCE/isce/components/iscesys/StdOEL/StdOELPy.py", line 22, in <module>
    from StdOELPy import StdOEL
ImportError: cannot import name StdOEL

I met an import error when trying to compute the coherence. Unfortunately I tried a lot of ways but still couldn't fix it. Could you please tell me how to fix it or how to compute coherence value through another way? Thanks so much!

rtburns-jpl commented 1 month ago

I'm confused by this part:

  File "/home/Program/ISCE/isce/components/iscesys/StdOEL/StdOELPy.py", line 22, in <module>
    from StdOELPy import StdOEL

As far as I can tell, the line causing the error (from StdOELPy import StdOEL) does not exist anywhere in isce2. What version of isce2 are you using? How did you install it?