#!/bin/bash source ~/env_Multi_atlas.sh comp=$1 dataref=$2 shift local=`pwd -P` if [ 1 == 0 ]; then login=`whoami` hostname=`hostname` if [ ${hostname:0:5} = cicla ] ; then DODSDIR=/thredds/ipsl HTML00=http://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/$login machine=ciclad fi if [ ${hostname:0:5} = spiri ] ; then DODSDIR=/thredds/ipsl HTML00=http://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/$login machine=spirit 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 fi echo OK0 ATLAS_DIR=$DODSDIR/$login/lmdz/atlas OUT_DIR=$DODSDIR/$login/lmdz/MultiSimu/$comp ref=`head -1 $OUT_DIR/def.txt | awk ' { print $1 } '` if [ $dataref = 1 ]; then ref=OBS elif [ $dataref = 0 ]; then ref=`head -1 ${OUT_DIR}/def.txt | awk ' { print $1 } '` fi ZON_DIR=$OUT_DIR/ZON ZONC_DIR=$OUT_DIR/ZONC OUT_DIR_CESMEP=$DODSDIR/$login/C-ESM-EP/tmp_${comp}_C-ESM-EP_v2 echo OK1 ############################################################################# compf=$OUT_DIR/entete.html \cp -f $local/HOWTO.html $OUT_DIR/../ HTML0=$HTML00/lmdz/MultiSimu HTML=$HTML0/$comp HTML_CESMEP=$HTML00/C-ESM-EP/tmp_${comp}_C-ESM-EP_v2 emptyelt='