The problem with running the SeaDAS gpt command.
-
OB SeaDAS - xuanyang02
- Subject Matter Expert

- Posts: 723
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Endorsed: 10 times
Re: The problem with running the SeaDAS gpt command.
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.
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.
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 "$@"-
OB SeaDAS - xuanyang02
- Subject Matter Expert

- Posts: 723
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Endorsed: 10 times
Re: The problem with running the SeaDAS gpt command.
Thanks for letting us know! We'll fix our code accordingly.
Re: The problem with running the SeaDAS gpt command.
Yes, the gpt command still include /Contents/Home so that it failed.
I fixed the gpt file as treble suggested, and it works well.
I fixed the gpt file as treble suggested, and it works well.
Re: The problem with running the SeaDAS gpt command.
For the seadas_10.0.0_mac_aarch64 version gpt is not working (I haven't tested the linux version yet). It can't find the .install4j directory. I can only get it to work by copying an older version of gpt (I used the one from seadas 8.4.1) and adjust the java path again as described earlier in this thread.
The last line now reads:
exec "$app_home/jdk-21.0.8+9-jre/Contents/Home/bin/java" - ...
The last line now reads:
exec "$app_home/jdk-21.0.8+9-jre/Contents/Home/bin/java" - ...
-
OB SeaDAS - xuanyang02
- Subject Matter Expert

- Posts: 723
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Endorsed: 10 times
Re: The problem with running the SeaDAS gpt command.
Unfortunately, gpt still does not work in SeaDAS 10
Re: The problem with running the SeaDAS gpt command.
That is too bad. It does seem to work though with 10.0.0 using the tweaks I posted earlier. At least I can Mosaic with gpt, haven't tried much else.