
login=`whoami`
hostname=`hostname`

if [ ${hostname:0:5} = cicla ] ; then
DODSDIR=/thredds/ipsl
dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
HTML00=http://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/$login
module purge
module load netcdf4/4.3.3.1-ifort
module load cdo/1.6.8
module load nco/4.5.2
module load ncl/6.3.0
module load python/2.7-anaconda
### climaf
export PYTHONPATH=$PYTHONPATH:/ciclad-home/jservon/Evaluation/CliMAF/climaf_installs/climaf_V2.0.0/climaf
export PATH=$PATH:/ciclad-home/jservon/Evaluation/CliMAF/climaf_installs/climaf_V2.0.0/climaf/bin
ferret=`which ferret`
fi

if [ ${hostname:0:5} = spiri ] ; then
DODSDIR=/thredds/ipsl
dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
HTML00=http://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/$login

### OBSDIR : $PATH des OBS = compte commun 
OBSDIR=$DODSDIR/fabric/lmdz

### climaf 2.0.2, JS: 02.11.2022
module use --append /net/nfs/tools/Users/SU/modulefiles/jservon
# --> On Spirit
emodule=climaf/spirit_0
echo Loading module $emodule for CliMAF and C-ESM-EP
set +x
module purge
module load $emodule

module load pangeo-meso/2023.04.15
module load ferret/7.6.0
ferret=`which ferret_c`

MAIN=/thredds/ipsl/fabric/lmdz
MAIN_SE=${MAIN}/SE
MAIN_CMOR=${MAIN}/SE/CMOR
SEORIG=${MAIN_SE}/ORIG
STOREDIR=/thredds/ipsl/fabric/lmdz/STORE/$EXPNAME
MULTIDIR=${MAIN}/MultiSimu

#######################################################
### ajout make_html_libIGCM
if [ 1 == 0 ]; then
####################################################################
EXPNAME=NPV5LRL79
put=cp
CICLAD=/thredds/ipsl/${login}/lmdz
ARCHIVE=$CICLAD/STORE
workdir=$CICLAD/WORK
STORAGE=$CICLAD
ROOTWEBatlas=http://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/${logname}/lmdz/STORE/$EXPNAME
MULTIDIR=/thredds/ipsl/${login}/lmdz/MultiSimu

ROOTSTORAGE=$ARCHIVE/$EXPNAME
ROOTDODS=DODS/pub/$LOGNAME/$CONFIGNAME
ROOTWEB="http://dodsp.idris.fr/$LOGNAME/$EXPNAME"
ROOTWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim
ROOTWEB_PROD=https://thredds-su.ipsl.fr/thredds/catalog/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim
ROOTWEB_PROD=https://thredds-su.ipsl.fr/thredds/catalog/store_thredds/aidel/IGCM_OUT/LMDZOR/DEVT/clim
ROOTWEB_PRODout=https://thredds-su.ipsl.fr/thredds/catalog/store_thredds/aidel/LMDZOR/DEVT/clim
STOREWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/store_thredds/aidel/IGCM_OUT/LMDZOR/DEVT/clim
STOREWEB_PRODold=http://esgf.extra.cea.fr/thredds/catalog/store/aidel/IGCM_OUT/LMDZOR/DEVT/clim
if [ "$ROOTWEBORIG" = "" ] ; then
ROOTWEBORIG=ROOTWEBlibigcm
fi

fi

fi

if [ ${hostname:0:5} = camel ] ; then
DODSDIR=/thredds/ipsl
fi
if [ ${hostname:0:5} = irene ] ; then
DODSDIR=
fi
if [ ${hostname:0:5} = jean- ] ; then
DODSDIR=
fi

