l2gen products

Please enter here to ask a question about any NASA Science related topics!
OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 221
Joined: Mon Apr 07, 2008 4:40 pm America/New_York

l2gen products

by OB SeaDAS - knowles » Fri May 22, 2020 2:44 pm America/New_York

Are you using SeaDAS Version 7.5.3?

Tags:

gnwiii
Posts: 605
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 1

l2gen products

by gnwiii » Fri May 22, 2020 2:47 pm America/New_York

Writing this on a linux box: NASA SeaDAS provides <seadas_install_dir>/bin/gpt.sh.  ESA SNAP provides <snap_install_dir>/bin/gpt (without the .sh).  The ESA version changes to the <snap_install_dir>/bin directory before running the java command.  That means all files need to provide the full path.   I generally use ESA's version because it has many new operators, but in general my experience has been that Java tools sometimes fail if files aren't specified with a full path. 

You can get more detailed error messages by adding the -e flag to the gpt[.sh] command line.  You could try (assuming the files are in the test directory):
I:\DINEOF\BOB\test>gpt reproject.xml -e -Ssource=I:\DINEOF\BOB\test\QUA_MODIS.20071229T071507.L2.SST.nc -f GeoTIFF -Ptarget=I:\DINEOF\BOB\test\AQUA_MODIS.20071229T071507.L2.SST_reprojected.tif

OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 221
Joined: Mon Apr 07, 2008 4:40 pm America/New_York

l2gen products

by OB SeaDAS - knowles » Fri May 22, 2020 3:07 pm America/New_York

As a note since SeaDAS 7 has a platform dependent gpt executable filename, I'm using "gpt" as an alias for convenience:

For example I have on my mac in the file ~/.profile:
export SEADASROOT=/Users/seadas/SeaDAS_Installations/seadas-7.5.3
alias gpt=$SEADASROOT/bin/gpt.command

Danny

swathy
Posts: 12
Joined: Wed Jun 22, 2016 11:00 am America/New_York

l2gen products

by swathy » Fri May 22, 2020 7:01 pm America/New_York

Hi George,
Thank you for the response. I tried to give the entire path. I had installed Seadas in "C\Program Files". Since there is a space in the folder name, I reinstalled Seadas in another local drive. I got the following error. This was the error I had even when seadas was installed in C drive.

I:\DINEOF\BOB\test>H:\Software\seadas\install\seadas-7.5.3\bin\gpt.bat I:\DINEOF\BOB\test\reproject.xml -e Ssource=I:\DINEOF\BOB\test\AQUA_MODIS.20071229T071507.L2.SST.nc -f GeoTIFF -Ptarget=I:\DINEOF\BOB\test\AQUA_MODIS.20071229T071507.L2.SST_reprojected.tif
The system cannot find the path specified.


:confused:

swathy
Posts: 12
Joined: Wed Jun 22, 2016 11:00 am America/New_York

l2gen products

by swathy » Fri May 22, 2020 7:05 pm America/New_York

Hi Danny,
I am working on windows 7 operating system. Is there anything like that which I can do similar to that?

gnwiii
Posts: 605
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 1

l2gen products

by gnwiii » Sat May 23, 2020 9:21 am America/New_York

When I was using Windows 7 (before I retired) my institution didn't allow us to install SeaDAS in "C:\Program Files".   Now I have Windows 10 and have been using ESA's  gpt, so I never encountered the problem. 

C:\Users\seadas>dir "c:\Program Files\seadas-7.5"\bin\gpt.bat
Volume in drive C is OS
Volume Serial Number is 1648-9495

Directory of c:\Program Files\seadas-7.5\bin

2019-04-29  01:36 PM               497 gpt.bat
               1 File(s)            497 bytes
               0 Dir(s)  120,697,532,416 bytes free

But:

C:\Users\seadas>"c:\Program Files\seadas-7.5"\bin\gpt.bat -h
The system cannot find the path specified.


The problem is in gpt.bat:

If the following gives something like:
java -version
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode)


You can replace the line:
"%SEADAS_HOME%\jre\bin\java.exe" ^
with:
java.exe ^

Post Reply