Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doppler_vs_pixel format error in reference.xml #881

Open
SakuraLaurel opened this issue Sep 12, 2024 · 0 comments
Open

doppler_vs_pixel format error in reference.xml #881

SakuraLaurel opened this issue Sep 12, 2024 · 0 comments

Comments

@SakuraLaurel
Copy link

SakuraLaurel commented Sep 12, 2024

Hi, I installed ISCE2 several days ago by building it using CMake on Ubuntu 22.04. I encountered a crash when processing TerraSAR-X data using stripmapApp.py in the runPreprocessor step

2024-09-12 14:50:59,839 - isce.isceobj.scene.frame - ERROR - Error. The attribute corresponding to the key "doppler_vs_pixel" is not present in the object "<class 'isceobj.Scene.Frame.Frame'>".
Possible causes are the definition in the xml file of such attribute that is no longer defined 
in the object "<class 'isceobj.Scene.Frame.Frame'>" or a spelling error

I inspect the reference_slc.xml and the secondary_slc.xml, finding that the doppler_vs_pixel element is wrong:

<property name="doppler_vs_pixel">
    <value>[np.float64(-18.427734185277217), np.float64(-0.00010611554340968327), np.float64(3.057573271351503e-11)]</value>
    <doc>Doppler polynomial coefficients vs pixel number</doc>
</property>

after modifying it into

<property name="doppler_vs_pixel">
    <value>[-18.427734185277217, -0.00010611554340968327, 3.057573271351503e-11]</value>
    <doc>Doppler polynomial coefficients vs pixel number</doc>
</property>

I run the later steps successfully. The temporal method is to edit the code

etObj = ET.ElementTree(root)
edit_doppler_vs_pixel = etObj.getroot().find("component[@name='instance']/property[@name='doppler_vs_pixel']")
if edit_doppler_vs_pixel is not None:
    edit_doppler_vs_pixel[0].text = edit_doppler_vs_pixel[0].text.replace("np.float64(", "").replace(")", "")
fp = open(outfile,'wb')
etObj.write(fp)
fp.close()

in components/iscesys/Dumpers/XmlDumper.py. What is the reason for this problem, and is there a better method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant