#!/bin/bash source ~/env_Multi_atlas.sh comp=$1 local=`pwd -P` if [ 1 == 0 ]; then login=`whoami` hostname=`hostname` if [ ${hostname:0:5} = cicla ] ; then DODSDIR=/thredds/ipsl dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds HTML00=https://${dthredds}/$login machine=ciclad fi if [ ${hostname:0:5} = spiri ] ; then DODSDIR=/thredds/ipsl dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds HTML00=https://${dthredds}/$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 ATLAS_DIR=$DODSDIR/$login/lmdz/atlas OUT_DIR=$DODSDIR/$login/lmdz/MultiSimu/$comp entetef=$OUT_DIR/entete.html ZON_DIR=$OUT_DIR/ZON ############################################################################# ############################################################################# compf=$OUT_DIR/METRICS.html echo $compf emptyelt=' - ' # Modification du html après l'introduction des tuning saisonniers HTML=$HTML00/lmdz/MultiSimu/$comp if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version MET_D=METRICS/YEAR else MET_D=METRICS fi entete=1 rm -f $compf ; touch $compf cat $entetef >> $compf echo '
' >> $compf cat <<......eod>> $compf

Calcul de métriques sur des masques

Les flux sont orientés vers le bas. Les moyennes sont faites sur les masques montrés entre le titre et le graphe. Pour ETOA, la figure correspond à la différence entre le rouge et le bleu.

......eod echo '
' >> $compf echo '

' >> $compf echo '
' >> $compf echo '

Moyennes annuelles - Annual mean

' >> $compf echo '' >> $compf ################ 3 premieres metriques #####################" masks="glob circA circAa interH" for MET in "Global" "Circum. Antart" "Circum. Antart anom" "Inter Hemispheric" ; do echo "" >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/mask$mask.png echo '' >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/$mask.png echo '' >> $compf done echo '' >> $compf ################ 3 premieres metriques #####################" masks="etoa etow etows" for MET in "East Tropic Ocean Anom. (ETOA)" "ETO anom : ETO - WEAK" "ETO anom : SUBS - WEAK" ; do echo "" >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/mask$mask.png echo '' >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/$mask.png echo '' >> $compf done echo '' >> $compf ################ 3 premieres metriques #####################" masks="conv weak subs otrop" for MET in "Convective" "Weak" "Subsidence" "Tropic oceans" ; do echo "" >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/mask$mask.png echo '' >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/$mask.png echo '' >> $compf done echo '' >> $compf ################ 3 premieres metriques #####################" masks="oce ter NAtl Arct" for MET in "Oceans" "Continent" "N. Atlantic" "Arctic Oce." ; do echo "" >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/mask$mask.png echo '' >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/$mask.png echo '' >> $compf done echo '
$MET
$MET
$MET
$MET
' >> $compf ##################################################################### # Nouveaux tunings saisonniers if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version for seas in DJF JJA ; do MET_D=METRICS/$seas echo '
' >> $compf echo '

'$seas' mean

' >> $compf echo '' >> $compf ################ 3 premieres metriques #####################" masks="Sibe USA Arct NAtl circA" for MET in "Siberia" "US gr. plains" "Arctic" "N. Atlantic" "Circum Antart." ; do echo "" >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/mask$mask.png echo '' >> $compf done echo '' >> $compf for mask in $masks ; do thredds=$HTML/$MET_D/$mask.png echo '' >> $compf done echo '
$MET
' >> $compf ##################################################################### done fi echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR $HTML00/lmdz/MultiSimu/$comp/entete.html