#!/bin/bash

# Install SeaDAS 7.0-beta
cd $HOME
curl -O http://oceandata.sci.gsfc.nasa.gov/SeaDAS/installer/data/7.0-beta/seadas_7.0-beta_linux64_installer.sh
chmod u+x seadas_7.0-beta_linux64_installer.sh 
./seadas_7.0-beta_linux64_installer.sh 

# Set up SeaDAS 7.0-beta
export OCSSWROOT=$HOME/seadas-7.0-beta/Processing
source $OCSSWROOT/OCSSW_bash.env

# Update SeaDAS 7.0-beta
curl -O http://oceandata.sci.gsfc.nasa.gov/SeaDAS/updates/update_01/seadas_processing_update_linux_64.tar.gz
cd $OCSSWROOT
tar -zxf $HOME/seadas_processing_update_linux_64.tar.gz

# Clean up
cd $HOME
mkdir $HOME/seadas-7.0-beta/tarfiles
mv seadas_7.0-beta_linux64_installer.sh $HOME/seadas-7.0-beta/tarfiles
mv seadas_processing_update_linux_64.tar.gz $HOME/seadas-7.0-beta/tarfiles

