Closed FranckNIRD closed 4 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)
@FranckNIRD any update on this?
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.
Thanks for the update @FranckNIRD. Reach out any time if you get back into SAR processing.
Ubuntu 22.04
Python installation 3.10.12 under Conda Environnement
one install via pip
Geocode
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.