-
Notifications
You must be signed in to change notification settings - Fork 261
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
Comments
Hi @SakuraLaurel , following your prompts, I found that the problem might arise from def addProperty(self,parent,name,value,propMisc):
child = ET.SubElement(parent,"property",name=name)
ET.SubElement(child, 'value').text = str(value)
if not propMisc == None:
for pkey in self._propertyKeys:
if pkey in propMisc:
ET.SubElement(child, pkey).text = str(propMisc[pkey]) in After some trial and error, I found >>> import numpy as np
>>> np.__version__
'1.26.4'
>>> str([np.float64(5.0)])
'[5.0]' and >>> import numpy as np
>>> np.__version__
'2.0.1'
>>> str([np.float64(5.0)])
'[np.float64(5.0)]' Downgrading FYI, I am using |
Hi guys, I tried both ways, downgrading numpy and also trying modified code but still get the error that @SakuraLaurel got. |
After that I never tried this function again, but I think the cause of this problem is clear thanks to @shaodongli .If you still get the error, I think it is because that the import numpy as np
print(np.__version__) in the |
Thanks for your response. I checked my Numpy version which is '1.26.4'. |
The logic is that python will execute the code in etObj = ET.ElementTree(root)
fp = open(outfile,'wb')
etObj.write(fp)
fp.close() So If you have modified the code successfully, I can't think of another reason. Try to print the content of |
Hi,
Are you using ISCE2 on an apple silicon Mac? I only encountered this problem when I was trying to process data on an M1 pro Mac. It was fine when I was using a linux machine, either installed using conda or from source.
ISCE2 does not seem compatible with apple silicon Mac. I have not successfully processed ALOS raw data on an apple silicon Mac yet. It ran to the end but the result is not correct. So I ended up using linux instead of Mac.
Best,
Shaodong
… On Feb 10, 2025, at 11:38 pm, Hassan2211345 ***@***.***> wrote:
Thanks for your response. I checked my Numpy version which is '1.26.4'.
The issue persists.
I used ISCE for quite some time on other device and never had this issue
Reecently, i installed isce on my new laptop where i face this issue.
The only difference is that I am using python 3.11 and on my older device, I used latest version of python
—
Reply to this email directly, view it on GitHub <#881 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AUEEUOGDAPE2YNI4VX5BA2T2PGSIPAVCNFSM6AAAAABOCP3UMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJQGAZDOOJXHE>.
You are receiving this because you were mentioned.
|
Hi, thank you for the message @SakuraLaurel and @shaodongli The problem persists. I am using Linux mint by the way, and before also, I always used linux. The code is modified and i am pasting that part of my XmlDumper for your reference. ` def addProperty(self, parent, name, value, propMisc):
` |
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
I inspect the reference_slc.xml and the secondary_slc.xml, finding that the doppler_vs_pixel element is wrong:
after modifying it into
I run the later steps successfully. The temporal method is to edit the code
in components/iscesys/Dumpers/XmlDumper.py. What is the reason for this problem, and is there a better method?
The text was updated successfully, but these errors were encountered: