johntruckenbrodt / pyroSAR

framework for large-scale SAR satellite data processing
MIT License
513 stars 112 forks source link

Issue with GeoCode in last version of pyroSAR #283

Closed FranckNIRD closed 7 months ago

FranckNIRD commented 12 months ago

Exception has occurred: AttributeError 'ExamineSnap' object has no attribute 'gpt' File "/home/nivole/Documents/18_detection_TFAC_MERCORAIL/MultiTFAC.py", line 45, in geocode( AttributeError: 'ExamineSnap' object has no attribute 'gpt'

in the previous version, this code woked :

geocode( infile="/home/Documents/18_detection_TFAC/FichierS1/S1_NOUMEA/S1B_IW_GRDH_1SDV_20200117T182230_20200117T182247_019860_0258F5_0531.zip", outdir="./Geocode/Noumea", tr=20, scaling="dB", t_srs=4326, refarea="sigma0", terrainFlattening=False, speckleFilter = 'Median', )

I changed bashrc to get the good path.

johntruckenbrodt commented 12 months ago

Thanks for getting in touch @FranckNIRD. I see that you are using quite an old version on SNAP for which I cannot guarantee support. Can you update to SNAP 9 and see whether the problem persists? SNAP identification with ExamineSnap is not run at every startup but only once and the relevant paths are then stored in a file .pyrosar/config.ini in your home directory. Can you check the content of this file? Do the paths point to your SNAP installation? If not you can try deleting the file and running the following:

from pyroSAR.examine import ExamineSnap
import logging
logging.basicConfig(level=logging.DEBUG)
config = ExamineSnap()
print(config.gpt)
johntruckenbrodt commented 7 months ago

@FranckNIRD any update on this?

FranckNIRD commented 7 months ago

I didn't have more time to work on. I Keep in mind your answer. I will have to work again with Sentinel1. For the moment I close issues. Thank you for your help.

johntruckenbrodt commented 7 months ago

Thanks for the update @FranckNIRD. Reach out any time if you get back into SAR processing.