export INSTALLDIR=/opt/lofar
export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64/:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/opt/intel/mkl/lib/intel64/:$LD_LIBRARY_PATH
export INSTALLDIR=$INSTALLDIR
export HDF5_USE_FILE_LOCKING=FALSE
source $INSTALLDIR/lofar/lofarinit.sh
export PYTHONPATH=$INSTALLDIR/dppp:$INSTALLDIR/lofar/lib64/python2.7/site-packages
export PATH=/opt/montage/Montage-6.0/bin:$PATH
export PATH=$INSTALLDIR/aoflagger/bin:$PATH
export PATH=$INSTALLDIR/casacore/bin:$PATH
export PATH=$INSTALLDIR/ds9/bin:$PATH
export PATH=$INSTALLDIR/DPPP/bin:$PATH
export PATH=$INSTALLDIR/difmap/uvf_difmap:$PATH
export PATH=$INSTALLDIR/dysco/bin:$PATH
export PATH=$INSTALLDIR/lofar/bin:$PATH
export PATH=$INSTALLDIR/wsclean/bin:$PATH
export PATH=/usr/lib64/openmpi/bin:$PATH
export LD_LIBRARY_PATH=$INSTALLDIR/aoflagger/lib:$INSTALLDIR/casacore/lib:$INSTALLDIR/DPPP/lib:$INSTALLDIR/dysco/lib:$INSTALLDIR/EveryBeam/lib:$INSTALLDIR/idg/lib:$INSTALLDIR/lofar/lib:$INSTALLDIR/lofar/lib64:$INSTALLDIR/LOFARBeam/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:$LD_LIBRARY_PATH
export OPENBLAS_NUM_THREADS=64
export OPENBLAS_MAX_THREADS=64
export OMP_NUM_THREADS=64
export OMP_MAX_THREADS=64

export PYTHONPATH=$INSTALLDIR/dppp:$INSTALLDIR/lofar/lib64/python2.7/site-packages:$PYTHONPATH
source $INSTALLDIR/pyenv-py2/bin/activate
echo "measures.directory: $INSTALLDIR/casacore/data" > $INSTALLDIR/.casarc 
export CASARCFILES=$INSTALLDIR/.casarc
