The problem with running the SeaDAS gpt command.

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
ynrs
Posts: 3
Joined: Sun Mar 12, 2023 11:34 pm America/New_York
Answers: 0

The problem with running the SeaDAS gpt command.

by ynrs » Wed Jun 26, 2024 9:50 am America/New_York

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?

Filters:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 712
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 9 times

Re: The problem with running the SeaDAS gpt command.

by OB SeaDAS - xuanyang02 » Thu Jun 27, 2024 3:57 pm America/New_York

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.

treble
Posts: 59
Joined: Thu Jan 24, 2008 1:33 pm America/New_York
Answers: 0
Has thanked: 2 times
Been thanked: 1 time

Re: The problem with running the SeaDAS gpt command.

by treble » Wed Oct 23, 2024 5:26 pm America/New_York

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
Subject Matter Expert
Posts: 712
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 9 times

Re: The problem with running the SeaDAS gpt command.

by OB SeaDAS - xuanyang02 » Wed Oct 23, 2024 5:41 pm America/New_York

Thanks for letting us know! We'll fix our code accordingly.

Post Reply