Seadas L2 Gen Failed with Exit Code 1 OLI Data

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
natalietreadwell
Posts: 4
Joined: Wed Sep 29, 2021 1:26 pm America/New_York
Answers: 0

Seadas L2 Gen Failed with Exit Code 1 OLI Data

by natalietreadwell » Wed Sep 29, 2021 1:31 pm America/New_York

Hi -

I am trying to process Rrs values from Landsat8 OLI imagery using the L2gen tool in Seadas.

I have tried updating my python to 2.7 and reinstalling Java as other forums have suggested but I keep getting the following error:
"Execution exception: java/io/IOException: l2gen failed with exit code 1
Check log for more details.
-E- clo_getOptionsString: option=ifile needs to be set

I am stuck on this component and need to solve this issue for my thesis. Any help is appreciated.

Natalie

Tags:

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

Re: Seadas L2 Gen Failed with Exit Code 1 OLI Data

by OB SeaDAS - xuanyang02 » Wed Sep 29, 2021 2:45 pm America/New_York

Are you using SeaDAS 7 or 8?

For SeaDAS 8, you need python 3.6 or later. https://seadas.gsfc.nasa.gov/downloads/

natalietreadwell
Posts: 4
Joined: Wed Sep 29, 2021 1:26 pm America/New_York
Answers: 0

Re: Seadas L2 Gen Failed with Exit Code 1 OLI Data

by natalietreadwell » Wed Sep 29, 2021 6:00 pm America/New_York

I am using Seadas 8 on MacOS and was trying with both python 2 and 3 per the suggestion of another forum - I have readjusted so the program directs to python 3 through Anaconda.

There is an issue with the snap.properties and the .vmoptions, as well as the OCSSWROOT (Java Env): null - Can you suggest how to address this?

Thank you so much!

Main Application Platform:
Application Version: SeaDAS 8.1.0
Installation Directory: /Users/Shared/seadas
Data Directory: /var/root/.seadas8
Configuration: /Users/Shared/seadas/etc/snap.properties
WARNING!! File '/Users/Shared/seadas/etc/snap.properties' does not exist
Configuration2: /var/root/.seadseaas8/etc/snap.properties
VM Configuration: /Users/Shared/seadas/bin/pconvert.vmoptions
WARNING!! File '/Users/Shared/seadas/bin/pconvert.vmoptions' does not exist
VM Configuration (gpt): /Users/Shared/seadas/bin/gpt.vmoptions
WARNING!! File '/Users/Shared/seadas/bin/gpt.vmoptions' does not exist
Desktop Specification Version: 8.0.3
Engine Specification Version: 8.0.3
JRE: Java(TM) SE Runtime Environment 1.8.0_201-b09
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Memory: 3641 MiB

OCSSWROOT (Java Env): null

Python3 Directory:
/usr/bin/python3

SeaDAS Toolbox:
SeaDAS Toolbox Specification Version: 1.1.0
Configuration: /var/root/.seadas8/etc/seadas.properties
OCSSW Root Directory: /Users/treadwen/Desktop/SeadasOutput
OCSSW Log Directory: /Users/Shared/seadas/bin
OCSSW Location: local
Environment {$OCSSWROOT} (external): null

-----------------------------------------------

NASA Science Processing (OCSSW):
Environment {$OCSSWROOT}: /Users/treadwen/Desktop/SeadasOutput
Environment {$OCDATAROOT}: /Users/treadwen/Desktop/SeadasOutput/share
l2gen version: msl12 9.5.1-V2021.2 (Jun 18 2021 11:21:15)
l2bin version: 7.0.1
l3bin version: 5.13
l3mapgen version: l3mapgen 2.3.0-V2021.2 (Jun 18 2021 11:22:30)
Installed Missions: ['oli', 'seawifs']

General System and Software:
Operating system: MacOS 10.15.7
Java version: 17
Python3 version: 3.8.2
Python3 Path: /usr/bin/python3
Env: ASAP_PARMS=/Users/treadwen/Desktop/SeadasOutput/share/common/nav
CC=gcc
CPATH=/usr/local/include
CXX=g++
ELEMENTS=/Users/treadwen/Desktop/SeadasOutput/var/seawifs
EOS_LIB_PREFIX=macintel64
FC=gfortran
GCC_TUNE=
HDFEOS_LIB=/Users/treadwen/Desktop/SeadasOutput/opt/EOS/lib/macintel64
HOME=/Users/treadwen
HRPT_STATION_IDENTIFICATION_FILE=/Users/treadwen/Desktop/SeadasOutput/share/seawifs/station/station_id.dat
J2D_PIXMAPS=shared
JAVA_MAIN_CLASS_12614=org.netbeans.Main
L2GEN_ANC=/Users/treadwen/Desktop/SeadasOutput/var/anc
LANG=en_US.UTF-8
LC_CTYPE=UTF-8
LIB3_BIN=/Users/treadwen/Desktop/SeadasOutput/opt/bin
LIB3_CHECK=0
LIB3_DIR=/Users/treadwen/Desktop/SeadasOutput/opt
LIB3_INC=/Users/treadwen/Desktop/SeadasOutput/opt/include
LIB3_LIB=/Users/treadwen/Desktop/SeadasOutput/opt/lib
LIBRARY_PATH=/usr/local/lib
LOGNAME=root
MAIL=/var/mail/root
NAVCTL=/Users/treadwen/Desktop/SeadasOutput/share/seawifs/nav
NAVQC=/Users/treadwen/Desktop/SeadasOutput/share/seawifs/nav
OCDATAROOT=/Users/treadwen/Desktop/SeadasOutput/share
OCSSWROOT=/Users/treadwen/Desktop/SeadasOutput
OCSSW_ARCH=macosx_intel
OCSSW_BIN=/Users/treadwen/Desktop/SeadasOutput/bin
OCSSW_DEBUG=0
OCSSW_SVN=localhost
OCTS_REGISTRATION_TABLES=/Users/treadwen/Desktop/SeadasOutput/share/octs/nav
OCVARROOT=/Users/treadwen/Desktop/SeadasOutput/var
ORBCTL=/Users/treadwen/Desktop/SeadasOutput/share/seawifs/nav
PATH=/Users/treadwen/Desktop/SeadasOutput/opt/bin:/Users/treadwen/Desktop/SeadasOutput/bin:/Applications/Anaconda/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Anaconda/anaconda3/bin:/Applications/Anaconda/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/2.7/bin
PGSINC=/Users/treadwen/Desktop/SeadasOutput/opt/EOS/include
PGSLIB=/Users/treadwen/Desktop/SeadasOutput/opt/EOS/lib/macintel64
PROJ_LIB=/Users/treadwen/Desktop/SeadasOutput/opt/share/proj
PWD=/Users/Shared/seadas/bin
SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
SHELL=/bin/sh
SHLVL=3
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.keWpuXsJA8/Listeners
SUDO_COMMAND=./seadas
SUDO_GID=20
SUDO_UID=502
SUDO_USER=treadwen
SWFTBL=/Users/treadwen/Desktop/SeadasOutput/share/seawifs/qc
SWTBL=/Users/treadwen/Desktop/SeadasOutput/share/seawifs
TERM=xterm-256color
USER=root
_=/usr/bin/env
__CF_USER_TEXT_ENCODING=0x0:0:0
__PYVENV_LAUNCHER__=/Library/Developer/CommandLineTools/usr/bin/python3

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

Re: Seadas L2 Gen Failed with Exit Code 1 OLI Data

by OB SeaDAS - xuanyang02 » Wed Sep 29, 2021 6:36 pm America/New_York

Don't worry about the issue with the snap.properties and the .vmoptions.

Did you install ocssw using GUI?

It's best to install SeaDAS in /Users/treadwen rather than /Users/Shared.

I don't know why your $OCSSWROOT is /Users/treadwen/Desktop/SeadasOutput instead of $HOME/ocssw or [SeaDAS_install_dir]/ocssw

You might want to reinstall seadas and ocssw https://seadas.gsfc.nasa.gov/downloads/

natalietreadwell
Posts: 4
Joined: Wed Sep 29, 2021 1:26 pm America/New_York
Answers: 0

Re: Seadas L2 Gen Failed with Exit Code 1 OLI Data

by natalietreadwell » Wed Sep 29, 2021 9:47 pm America/New_York

I redownloaded Seadas and now am receiving the following error when I try to install the OLI OCSSW tool:

execution exception: java.io.IOException: install_ocssw failed with exit code 1.
Check log for more details.
Traceback (most recent call last):
File "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/install_ocssw", line 18, in <module>
import manifest as mf
File "/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/manifest.py", line 16, in <module>
import requests
ModuleNotFoundError: No module named 'requests'




The Seadas/system info reads:

Main Application Platform:
Application Version: SeaDAS 8.1.0
Installation Directory: /Users/treadwen/Desktop/Seadas
Data Directory: /var/root/.seadas8
Configuration: /Users/treadwen/Desktop/Seadas/etc/snap.properties
WARNING!! File '/Users/treadwen/Desktop/Seadas/etc/snap.properties' does not exist
Configuration2: /var/root/.seadas8/etc/snap.properties
VM Configuration: /Users/treadwen/Desktop/Seadas/bin/pconvert.vmoptions
WARNING!! File '/Users/treadwen/Desktop/Seadas/bin/pconvert.vmoptions' does not exist
VM Configuration (gpt): /Users/treadwen/Desktop/Seadas/bin/gpt.vmoptions
WARNING!! File '/Users/treadwen/Desktop/Seadas/bin/gpt.vmoptions' does not exist
Desktop Specification Version: 8.0.3
Engine Specification Version: 8.0.3
JRE: Java(TM) SE Runtime Environment 1.8.0_201-b09
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Memory: 3641 MiB

OCSSWROOT (Java Env): null

Python3 Directory:
/usr/bin/python3

SeaDAS Toolbox:
SeaDAS Toolbox Specification Version: 1.1.0
Configuration: /var/root/.seadas8/etc/seadas.properties
OCSSW Root Directory: /Users/treadwen/Desktop/Seadas/ocssw
OCSSW Log Directory: /Users/treadwen/Desktop/Seadas/bin
OCSSW Location: local
Environment {$OCSSWROOT} (external): null

-----------------------------------------------

NASA Science Processing (OCSSW):
WARNING! Cannot find 'seadas_info' in the OCSSW bin directory

General System and Software:
Operating System: Mac OS X 10.15.7
Java Version: 1.8.0_201

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

Re: Seadas L2 Gen Failed with Exit Code 1 OLI Data

by OB SeaDAS - xuanyang02 » Thu Sep 30, 2021 10:07 am America/New_York

Yes, you need Python requests package v2.18.0 or later as pointed out by "Ensure that the requirements are satisfied" on the downloads page: https://seadas.gsfc.nasa.gov/downloads/

Here is more about the python requests package: [https:]//docs.python-requests.org/en/master/

Here is another thread you might find relevant: viewtopic.php?f=7&t=2447&p=8730&hilit=ModuleNotFoundError%3A+No+module+named+%27requests%27&sid=49909348c651a969feb30c81b850019b#p8730

natalietreadwell
Posts: 4
Joined: Wed Sep 29, 2021 1:26 pm America/New_York
Answers: 0

Re: Seadas L2 Gen Failed with Exit Code 1 OLI Data

by natalietreadwell » Thu Sep 30, 2021 8:48 pm America/New_York

I have installed python 3 through Anaconda, made sure I deleted everything the OCSSW files and restarted my computer. I then reinstalled the OLI OCSSW and tried to run the L2gen with Landsat OLI and received this error:

execution exception: java.io.IOException: L2gen failed with exit code 1.
Check log for more details.
- E- clo_getOptionString: option=ifile needs to be set

I think the issue is with my Java environment being set to Null (OCSSWROOT (Java Env): null shown in the system notes below) - Do you agree and could you suggest how I can direct it to the correct Java Env?


Main Application Platform:
Application Version: SeaDAS 8.1.0
Installation Directory: /Users/treadwen/Desktop/Seadas
Data Directory: /var/root/.seadas8
Configuration: /Users/treadwen/Desktop/Seadas/etc/snap.properties
WARNING!! File '/Users/treadwen/Desktop/Seadas/etc/snap.properties' does not exist
Configuration2: /var/root/.seadas8/etc/snap.properties
VM Configuration: /Users/treadwen/Desktop/Seadas/bin/pconvert.vmoptions
WARNING!! File '/Users/treadwen/Desktop/Seadas/bin/pconvert.vmoptions' does not exist
VM Configuration (gpt): /Users/treadwen/Desktop/Seadas/bin/gpt.vmoptions
WARNING!! File '/Users/treadwen/Desktop/Seadas/bin/gpt.vmoptions' does not exist
Desktop Specification Version: 8.0.3
Engine Specification Version: 8.0.3
JRE: Java(TM) SE Runtime Environment 1.8.0_201-b09
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Memory: 3641 MiB

OCSSWROOT (Java Env): null

Python3 Directory:
/Users/treadwen/Desktop/Anaconda/anaconda3/bin/python3

SeaDAS Toolbox:
SeaDAS Toolbox Specification Version: 1.1.0
Configuration: /var/root/.seadas8/etc/seadas.properties
OCSSW Root Directory: /Users/treadwen/Desktop/Seadas/ocssw
OCSSW Log Directory: /Users/treadwen/Desktop/Seadas/bin
OCSSW Location: local
Environment {$OCSSWROOT} (external): null

-----------------------------------------------

NASA Science Processing (OCSSW):
Environment {$OCSSWROOT}: /Users/treadwen/Desktop/Seadas/ocssw
Environment {$OCDATAROOT}: /Users/treadwen/Desktop/Seadas/ocssw/share
l2gen version: msl12 9.5.1-V2021.2 (Jun 18 2021 11:21:15)
l2bin version: 7.0.1
l3bin version: 5.13
l3mapgen version: l3mapgen 2.3.0-V2021.2 (Jun 18 2021 11:22:30)
Installed Missions: ['oli']

General System and Software:
Operating system: MacOS 10.15.7
Java version: 17
Python3 version: 3.8.8
Python3 Path: /Users/treadwen/Desktop/Anaconda/anaconda3/bin/python3
Env: ASAP_PARMS=/Users/treadwen/Desktop/Seadas/ocssw/share/common/nav
CC=gcc
CONDA_DEFAULT_ENV=base
CONDA_EXE=/Users/treadwen/Desktop/Anaconda/anaconda3/bin/conda
CONDA_PREFIX=/Users/treadwen/Desktop/Anaconda/anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=/Users/treadwen/Desktop/Anaconda/anaconda3/bin/python
CONDA_SHLVL=1
CXX=g++
ELEMENTS=/Users/treadwen/Desktop/Seadas/ocssw/var/seawifs
EOS_LIB_PREFIX=macintel64
FC=gfortran
GCC_TUNE=
HDFEOS_LIB=/Users/treadwen/Desktop/Seadas/ocssw/opt/EOS/lib/macintel64
HOME=/Users/treadwen
HRPT_STATION_IDENTIFICATION_FILE=/Users/treadwen/Desktop/Seadas/ocssw/share/seawifs/station/station_id.dat
J2D_PIXMAPS=shared
JAVA_MAIN_CLASS_1045=org.netbeans.Main
L2GEN_ANC=/Users/treadwen/Desktop/Seadas/ocssw/var/anc
LANG=en_US.UTF-8
LC_CTYPE=UTF-8
LIB3_BIN=/Users/treadwen/Desktop/Seadas/ocssw/opt/bin
LIB3_CHECK=0
LIB3_DIR=/Users/treadwen/Desktop/Seadas/ocssw/opt
LIB3_INC=/Users/treadwen/Desktop/Seadas/ocssw/opt/include
LIB3_LIB=/Users/treadwen/Desktop/Seadas/ocssw/opt/lib
LOGNAME=root
MAIL=/var/mail/root
NAVCTL=/Users/treadwen/Desktop/Seadas/ocssw/share/seawifs/nav
NAVQC=/Users/treadwen/Desktop/Seadas/ocssw/share/seawifs/nav
OCDATAROOT=/Users/treadwen/Desktop/Seadas/ocssw/share
OCSSWROOT=/Users/treadwen/Desktop/Seadas/ocssw
OCSSW_ARCH=macosx_intel
OCSSW_BIN=/Users/treadwen/Desktop/Seadas/ocssw/bin
OCSSW_DEBUG=0
OCSSW_SVN=localhost
OCTS_REGISTRATION_TABLES=/Users/treadwen/Desktop/Seadas/ocssw/share/octs/nav
OCVARROOT=/Users/treadwen/Desktop/Seadas/ocssw/var
ORBCTL=/Users/treadwen/Desktop/Seadas/ocssw/share/seawifs/nav
PATH=/Users/treadwen/Desktop/Seadas/ocssw/opt/bin:/Users/treadwen/Desktop/Seadas/ocssw/bin:/Users/treadwen/Desktop/Anaconda/anaconda3/bin:/Users/treadwen/Desktop/Anaconda/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/treadwen/Desktop/Anaconda/anaconda3/bin:/Users/treadwen/Desktop/Anaconda/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/2.7/bin
PGSINC=/Users/treadwen/Desktop/Seadas/ocssw/opt/EOS/include
PGSLIB=/Users/treadwen/Desktop/Seadas/ocssw/opt/EOS/lib/macintel64
PROJ_LIB=/Users/treadwen/Desktop/Seadas/ocssw/opt/share/proj
PWD=/Users/treadwen/Desktop/Seadas/bin
SHELL=/bin/sh
SHLVL=3
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.oKTOLBAMkC/Listeners
SUDO_COMMAND=./seadas
SUDO_GID=20
SUDO_UID=502
SUDO_USER=treadwen
SWFTBL=/Users/treadwen/Desktop/Seadas/ocssw/share/seawifs/qc
SWTBL=/Users/treadwen/Desktop/Seadas/ocssw/share/seawifs
TERM=xterm-256color
USER=root
_=/usr/bin/env
_CE_CONDA=
_CE_M=
__CF_USER_TEXT_ENCODING=0x0:0:0

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

Re: Seadas L2 Gen Failed with Exit Code 1 OLI Data

by OB SeaDAS - xuanyang02 » Fri Oct 01, 2021 3:59 pm America/New_York

I don't think the problem is with $OCSSWROOT if you are running l2gen with GUI. If you want, you can add the following lines to your .bashrc file to configure your command line environment. See the Command Line Configuration section at the bottom of the page: https://seadas.gsfc.nasa.gov/downloads/

OCSSWROOT=/Users/treadwen/Desktop/Seadas/ocssw
source $OCSSWROOT/OCSSW_bash.env

You do need to quit SeaDAS, remove the /var/root/.seadas8 directory and start SeaDAS again.

Post Reply