OCSSW installation

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
yang16
Posts: 41
Joined: Wed Mar 30, 2016 8:28 am America/New_York
Answers: 0

OCSSW installation

by yang16 » Thu Apr 14, 2022 3:21 am America/New_York

Dear EARTHDATA Forum,

When I ran this command "./install_ocssw.py --install-dir=seadas-7.5.3 /home/mmy/seadas-7.5.3/ocssw --git-branch=v7.5.3 --local=/tmp --aqua –seawifs" , I got the error as shown in the attached file.

I may need to download this file "OCSSW_bash.env.v7.5.3" and put it in the related folder. But I did not find where to download this file.

Could you help me solve this issue?

Thank you!
Kind regards,
Sunny
Attachments
Error.png
Error.png (181.12 KiB) Not viewed yet

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: OCSSW installation

by OB SeaDAS - xuanyang02 » Thu Apr 14, 2022 10:33 am America/New_York

Try

Code: Select all

./install_ocssw.py --install-dir=/home/mmy/seadas-7.5.3/ocssw --git-branch=v7.5.3 --local=/tmp --aqua –seawifs
.

I am not sure about "--local=/tmp" part.

Can you do

Code: Select all

ls -al /tmp

yang16
Posts: 41
Joined: Wed Mar 30, 2016 8:28 am America/New_York
Answers: 0

Re: OCSSW installation

by yang16 » Thu Apr 14, 2022 11:32 am America/New_York

Hello Xuanyang,

Thank you very much for your reply. When I tried your first code, I got the same error as before. So I think I may need to download this file: OCSSW_bash.env.v7.5.3 and put it into /tmp. Do you know where to download this file?

Yes, I could run your second code.

Kind regards,
Sunny.

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: OCSSW installation

by OB SeaDAS - xuanyang02 » Thu Apr 14, 2022 12:21 pm America/New_York

Can you post here the result of

Code: Select all

ls -al /tmp
?

Have you previously downloaded ocssw bundles in /tmp? If not, you should run

Code: Select all

./install_ocssw.py --install-dir=/home/mmy/seadas-7.5.3/ocssw --git-branch=v7.5.3  --aqua –seawifs
instead.

I can't attach OCSSW_bash.env here, but here is the content of it:

#
# This script assumes the OCSSWROOT is already set
#

#
# C Compiler (if not already set)
# gcc
#
export CC=${CC:=gcc}

#
# C plus plus Compiler (if not already set)
# g++
#
export CXX=${CXX:=g++}

#
# Fortran Compiler (if not already set)
# gfortran
#
export FC=${FC:=gfortran}

#
# figure out what we are running on
#
# default to linux
export GCC_TUNE=""
export EOS_LIB_PREFIX=linux
export OCSSW_ARCH=linux
export OCSSW_DEBUG=${OCSSW_DEBUG:=0}

if [ "x`uname -s | grep Darwin`" != "x" ]; then
#
# MacOS X
#
if [ "x`uname -m | grep ppc`" != "x" ]; then
export EOS_LIB_PREFIX=macintosh
export OCSSW_ARCH=macosx_ppc
else
export EOS_LIB_PREFIX=macintel64
export OCSSW_ARCH=macosx_intel
export DYLD_FALLBACK_LIBRARY_PATH="$OCSSWROOT/opt/lib:/usr/local/lib:/usr/lib"
fi

else
if [ "x`uname -m | grep x86_64`" != "x" ]; then
export EOS_LIB_PREFIX=linux64
export OCSSW_ARCH=linux_64
else
export EOS_LIB_PREFIX=linux
export OCSSW_ARCH=linux
fi
fi

#
# setup lib3 directory
#
export LIB3_DIR="${OCSSWROOT}/opt"
export LIB3_INC="${LIB3_DIR}/include"
export LIB3_LIB="${LIB3_DIR}/lib"
export LIB3_CHECK=0
export LIB3_BIN=${LIB3_DIR}/bin

# Third-party libraries
export PGSLIB=$LIB3_DIR/EOS/lib/$EOS_LIB_PREFIX
export PGSINC=$LIB3_DIR/EOS/include
export HDFEOS_LIB=$LIB3_DIR/EOS/lib/$EOS_LIB_PREFIX

# data tree
export OCDATAROOT=$OCSSWROOT/share

# var tree
export OCVARROOT=$OCSSWROOT/var

# SWl01
export NAVCTL=$OCDATAROOT/seawifs/nav
export NAVQC=$OCDATAROOT/seawifs/nav
export ORBCTL=$OCDATAROOT/seawifs/nav
export ELEMENTS=$OCVARROOT/seawifs
export ASAP_PARMS=$OCDATAROOT/common/nav
export HRPT_STATION_IDENTIFICATION_FILE=$OCDATAROOT/seawifs/station/station_id.dat

# OCl1bgen
export OCTS_REGISTRATION_TABLES=$OCDATAROOT/octs/nav

# seawifs format checker
export SWTBL=$OCDATAROOT/seawifs
export SWFTBL=$OCDATAROOT/seawifs/qc

# bin directory
export OCSSW_BIN=$OCSSWROOT/bin

# Ancillary data directory
export L2GEN_ANC=$OCVARROOT/anc

# executable path
pathmunge () {
if ! echo $PATH | egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
export PATH=$PATH:$1
else
export PATH=$1:$PATH
fi
fi
}

# python path
pypathmunge () {
if ! echo $PYTHONPATH | egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
export PYTHONPATH=$PYTHONPATH:$1
else
export PYTHONPATH=$1:$PYTHONPATH
fi
fi
}

# add executable paths
pathmunge $OCSSW_BIN
pathmunge $OCSSWROOT/scripts
pathmunge $LIB3_BIN

# add python module paths
pypathmunge $OCSSWROOT/scripts
pypathmunge $OCSSWROOT/scripts/modules

unset pathmunge
unset pypathmunge

# setup proj.4 data directory
export PROJ_LIB=$LIB3_DIR/share/proj

# setup the svn host for direct access or tunneling
#
ping -q -c 1 svn101.domain.sdps &> /dev/null
if [ $? == 0 ]; then
export OCSSW_SVN=svn101.domain.sdps
else
export OCSSW_SVN=localhost
fi

yang16
Posts: 41
Joined: Wed Mar 30, 2016 8:28 am America/New_York
Answers: 0

Re: OCSSW installation

by yang16 » Fri Apr 15, 2022 1:41 am America/New_York

Thank you for your reply again! When I ran "ls -al /tmp", I got below:
1.png
1.png (328.88 KiB) Not viewed yet
I think I already installed ocssw bundles. By the way, I installed OCSSW following this webiste (https://seadas.gsfc.nasa.gov/tutorials/installation_tutorial/) and I already download the Git bundles, README, OCSSW_env.bash, sha1sum file, and install script. But when I ran "./install_ocssw.py –install-dir=seadas-7.5.3 /home/mmy/seadas-7.5.3/ocssw –git-branch=v7.5.3 –local=/tmp –aqua –seawifs", I got that error.

I have OCSSW_bash.env under/tmp/, but I do not have OCSSW_bash.env.v7.5.3 which was required according to the error.

Thank you.
Sunny

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: OCSSW installation

by OB SeaDAS - xuanyang02 » Mon Apr 18, 2022 11:27 am America/New_York

I am a little puzzled why it's looking for OCSSW_bash.env.v7.5.3. It probably does not like --git-branch=v7.5.3. It's also looking for /tmp/seadas-7.5.3, which does not exist

Let's try

Code: Select all

./install_ocssw.py --install-dir=/home/mmy/seadas-7.5.3/ocssw --git-branch=v7.5  --aqua –-seawifs
If you'd like to try SeaDAS 8.2.0, here is the download instruction -- https://seadas.gsfc.nasa.gov/downloads/

yang16
Posts: 41
Joined: Wed Mar 30, 2016 8:28 am America/New_York
Answers: 0

Re: OCSSW installation

by yang16 » Tue Apr 19, 2022 10:21 am America/New_York

Hello Xuanyang,

Thank you very much for your help. Before I saw your message, I installed OCSSW successfully by a different method which was to install it from seadas software. So I did not try your update code. Hopefully, it will work. It seems that somewhere in the code is wrong.

In addition, I cannot use higher version of seadas as it will not be compatible with another software I am using.

Best,
Sunny

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: OCSSW installation

by OB SeaDAS - xuanyang02 » Tue Apr 19, 2022 10:40 am America/New_York

Yes, it's easier to install OCSSW through SeaDAS GUI.

Here is the help page for SeaDAS 7.5.3 -- https://seadas.gsfc.nasa.gov/help-7.5.3/

yang16
Posts: 41
Joined: Wed Mar 30, 2016 8:28 am America/New_York
Answers: 0

Re: OCSSW installation

by yang16 » Tue Apr 19, 2022 9:26 pm America/New_York

Hi Xuanyang,

Thank you very much for your reply and the link. I am noted.

Best,
Sunny

Post Reply