Hi, I've written a python script in which I open a band in a hyperspectral image using the view command after I've called and opened the image. From a python shell script, the view window stays open. When running the same commands from a python script, the image immediately closes unless I put in a timer.
Any suggestions on how to address the problem.
Thanks,
Sam
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the second case (running from a python script), does the view window stay open indefinitely or does it close as soon as your timer stops? And are you running your script from the python command prompt like
>>>frommy_scriptimport*
or are you calling it from the system command prompt like
# python my_script.py
?
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I've written a python script in which I open a band in a hyperspectral image using the view command after I've called and opened the image. From a python shell script, the view window stays open. When running the same commands from a python script, the image immediately closes unless I put in a timer.
Any suggestions on how to address the problem.
Thanks,
Sam
Hi Sam,
In the second case (running from a python script), does the view window stay open indefinitely or does it close as soon as your timer stops? And are you running your script from the python command prompt like
or are you calling it from the system command prompt like
?
Thomas