
login=`whoami`
hostname=`hostname`

if [ ${hostname:0:5} = cicla ] ; then
DODSDIR=/thredds/ipsl
dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
HTML=http://${dthredds}/$login/lmdz/MultiSimu/$comp
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
HTML=http://${dthredds}/$login/lmdz/MultiSimu/$comp

### 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 gcc/9.4.0
module load netcdf-fortran/4.5.3-parallel-netcdf

module load cdo/2.0.6
module load nco/5.0.1
module load ncl/6.6.2
module load anaconda3-py/2020.11
#module load anaconda3-py/2021.11
module load ferret/7.6.0
ferret=`which ferret_c`

#######################################################
### 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
COMP_D=$MULTIDIR/$comp
DEF_FILE=$COMP_D/def.txt
HTML_D=$COMP_D

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

