Commit 4e99b93b authored by Kennedy, Joseph H's avatar Kennedy, Joseph H
Browse files

LEX-0.1-alpha

 An alpha version of the LIVVkit Extensions repository to demonstrate
 our extension functionality. It includes the CESM Greenland analyses of
 cloud cover, energy balance and surface mass balance, as will be
 documented in the Evans et al. (2018) LIVVkit validation paper, which
 will be submitted soon.
parents cb4761ca bc057874
#!/usr/bin/env bash
if [ -d "$HOME/.local/bin" ]; then
case ":$PATH:" in
*:$HOME/\.local/bin:*)
# echo 'on path'
;;
*)
echo '$HOME/.local/bin not found in $PATH. Adding it to $PATH'
export PATH=$PATH:$HOME/.local/bin
;;
esac
fi
if [ -d "$HOME/.modulefiles" ]; then
case ":$MODULEPATH:" in
*:$HOME/\.modulefiles:*)
# echo 'on path'
;;
*)
echo '$HOME/.modulefiles not found in $MODULEPATH. Adding it to $MODULEPATH'
export MODULEPATH=$HOME/.modulefiles:$MODULEPATH
;;
esac
fi
if [ ! -x "$(command -v git-lfs)" ]; then
echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
echo 'git-lfs not installed! Installing... into $HOME/.local/bin'
echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
mkdir -p $HOME/.local/lib
pushd $HOME/.local/lib
wget https://github.com/git-lfs/git-lfs/releases/download/v2.3.4/git-lfs-linux-amd64-2.3.4.tar.gz
tar -zxf git-lfs-linux-amd64-2.3.4.tar.gz
cd git-lfs-2.3.4
sed -i 's/\/usr\/local/\$HOME\/.local/g' install.sh
. install.sh
popd
echo 'In the future, be sure to include $HOME/.local/bin in your path:'
echo ' export PATH=$PATH:$HOME/.local/bin'
echo 'Note: You will likely want to put this in your .bashrc, or similar.'
fi
if [[ $(hostname -s) = rhea* ]]; then
module unload PE-pgi PE-gnu PE-intel
module load PE-gnu/4.8.2
module unload nco ncl netcdf gcc
module load netcdf/4.4.1
module load gsl hdf5-parallel
module load nco/4.6.9
module load anaconda-cli106/rhea
module list
. deactivate && . activate LIVVpy2
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment