Page 1 of 1
The problem with running the SeaDAS gpt command.
Posted: Wed Jun 26, 2024 9:50 am America/New_York
by ynrs
My SeaDAS version is 9.0.1. While most functions run normally, I found that I cannot run gpt from the command line. Do I need to install anything additional?
Re: The problem with running the SeaDAS gpt command.
Posted: Thu Jun 27, 2024 3:57 pm America/New_York
by OB SeaDAS - xuanyang02
gpt in SeaDAS 9.0.1 should work. Please share with us the error message you got.
Here is the gpt tutorial page --
https://seadas.gsfc.nasa.gov/help-9.0.0/GptCookbook/gptTutorial.html
There is a know bug that you need to use the full path for files and commands.
Re: The problem with running the SeaDAS gpt command.
Posted: Wed Oct 23, 2024 5:26 pm America/New_York
by treble
With the linux version I always have to fix the path to java in the gpt file before it works (removing "Contents/Home/" near the end of the file).
Code: Select all
diff gpt gpt_orig
448c448
< exec "$app_home/jdk-11.0.19+7-jre/bin/java" -Dexe4j.moduleName="$prg_dir/$progname" -Djava.library.path=$LD_LIBRARY_PATH "-Dsnap.mainClass=org.esa.snap.core.gpf.main.GPT" "-Dsnap.home=$app_home" "-Djava.awt.headless=true" -classpath "$local_classpath" org.esa.snap.runtime.Launcher "$@"
---
> exec "$app_home/jdk-11.0.19+7-jre/Contents/Home/bin/java" -Dexe4j.moduleName="$prg_dir/$progname" -Djava.library.path=$LD_LIBRARY_PATH "-Dsnap.mainClass=org.esa.snap.core.gpf.main.GPT" "-Dsnap.home=$app_home" "-Djava.awt.headless=true" -classpath "$local_classpath" org.esa.snap.runtime.Launcher "$@"
Re: The problem with running the SeaDAS gpt command.
Posted: Wed Oct 23, 2024 5:41 pm America/New_York
by OB SeaDAS - xuanyang02
Thanks for letting us know! We'll fix our code accordingly.
Re: The problem with running the SeaDAS gpt command.
Posted: Thu Sep 04, 2025 11:28 am America/New_York
by zhigang
Yes, the gpt command still include /Contents/Home so that it failed.
I fixed the gpt file as treble suggested, and it works well.