isce2 icon indicating copy to clipboard operation
isce2 copied to clipboard

An import error when using the function of estCpxCoherence

Open JolinnaYoung opened this issue 1 year ago • 1 comments

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!

JolinnaYoung avatar Jun 23 '24 09:06 JolinnaYoung

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?

rtburns-jpl avatar Aug 15 '24 17:08 rtburns-jpl