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

Issue with GeoCode in last version of pyroSAR #283

Closed
FranckNIRD opened this issue Nov 29, 2023 · 4 comments
Closed

Issue with GeoCode in last version of pyroSAR #283

FranckNIRD opened this issue Nov 29, 2023 · 4 comments
Labels

Comments

@FranckNIRD
Copy link

  • which operating system are you using?
    Ubuntu 22.04
  • which environment is pyroSAR running in?
    Python installation 3.10.12 under Conda Environnement
  • which version of pyroSAR are you using?
    one install via pip
  • which function of pyroSAR did you call with which parameters?
    Geocode
  • if applicable, which version of SNAP or GAMMA are you using in pyroSAR?
    SNAP 5.0
  • the full error message

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.

@FranckNIRD FranckNIRD added the bug label Nov 29, 2023
@johntruckenbrodt
Copy link
Owner

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
Copy link
Owner

@FranckNIRD any update on this?

@FranckNIRD
Copy link
Author

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
Copy link
Owner

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

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

No branches or pull requests

2 participants