OCSSW installation
OCSSW installation
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
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 (181.12 KiB) Not viewed yet
Filters:
-
- Subject Matter Expert
- Posts: 713
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: OCSSW installation
Try .
I am not sure about "--local=/tmp" part.
Can you do
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
Re: OCSSW installation
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.
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.
-
- Subject Matter Expert
- Posts: 713
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: OCSSW installation
Can you post here the result of ?
Have you previously downloaded ocssw bundles in /tmp? If not, you should run 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
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
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
Re: OCSSW installation
Thank you for your reply again! When I ran "ls -al /tmp", I got below:
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
I think I already installed ocssw bundles. By the way, I installed OCSSW following this webiste (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
-
- Subject Matter Expert
- Posts: 713
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: OCSSW installation
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
If you'd like to try SeaDAS 8.2.0, here is the download instruction -- https://seadas.gsfc.nasa.gov/downloads/
Let's try
Code: Select all
./install_ocssw.py --install-dir=/home/mmy/seadas-7.5.3/ocssw --git-branch=v7.5 --aqua –-seawifs
Re: OCSSW installation
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
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
-
- Subject Matter Expert
- Posts: 713
- Joined: Tue Feb 09, 2021 5:42 pm America/New_York
- Been thanked: 9 times
Re: OCSSW installation
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/
Here is the help page for SeaDAS 7.5.3 -- https://seadas.gsfc.nasa.gov/help-7.5.3/
Re: OCSSW installation
Hi Xuanyang,
Thank you very much for your reply and the link. I am noted.
Best,
Sunny
Thank you very much for your reply and the link. I am noted.
Best,
Sunny