source: BOL/Multi_atlas/html_tuning_min.sh

Last change on this file was 4342, checked in by musat, 19 months ago

Inclut environnement spirit et dernieres corrections (3/3)
IonelaMusat?

  • Property svn:executable set to *
File size: 3.6 KB
Line 
1#!/bin/bash
2
3source ~/env_Multi_atlas.sh
4
5comp=$1
6
7local=`pwd -P`
8
9if [ 1 == 0 ]; then
10login=`whoami`
11hostname=`hostname`
12if [ ${hostname:0:5} = cicla ] ; then
13DODSDIR=/thredds/ipsl
14dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
15HTML00=http://${dthredds}/$login
16machine=ciclad
17fi
18if [ ${hostname:0:5} = spiri ] ; then
19DODSDIR=/thredds/ipsl
20dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
21HTML00=http://${dthredds}/$login
22machine=spirit
23fi
24if [ ${hostname:0:5} = camel ] ; then
25DODSDIR=/thredds/ipsl
26fi
27if [ ${hostname:0:5} = irene ] ; then
28DODSDIR=
29fi
30if [ ${hostname:0:5} = jean- ] ; then
31DODSDIR=
32fi
33fi
34
35ATLAS_DIR=$DODSDIR/$login/lmdz/atlas
36OUT_DIR=$DODSDIR/$login/lmdz/MultiSimu/$comp
37entetef=$OUT_DIR/entete.html
38ZON_DIR=$OUT_DIR/ZON
39
40#############################################################################
41#############################################################################
42
43compf=$OUT_DIR/METRICS_min.html
44echo $compf
45emptyelt='<td> - </td>'
46
47# Modification du html après l'introduction des tuning saisonniers
48HTML=$HTML00/lmdz/MultiSimu/$comp
49
50if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version
51   MET_D=METRICS/YEAR
52else
53   MET_D=METRICS
54fi
55
56entete=1
57
58rm -f $compf ; touch $compf
59
60      cat $entetef >> $compf
61
62      echo '<hr/>' >> $compf
63      cat <<......eod>> $compf
64      <h2> Calcul de métriques sur des masques </h2>
65      <h3> Les flux sont orientés vers le bas.
66      Les moyennes sont faites sur les masques montrés entre le titre et le graphe.
67      Pour ETOA, la figure correspond à la différence entre le rouge et le bleu.
68      </h3>
69......eod
70      echo '<hr/>' >> $compf
71
72      echo '<h3>' >> $compf
73
74      echo '<hr/>' >> $compf
75      echo '<h2> Moyennes annuelles - Annual mean </h2>' >> $compf
76      echo '<table>' >> $compf
77
78      echo '<TR>' >> $compf
79
80      ################   3 premieres metriques #####################"
81      masks="conv weak subs"
82      for MET in "Convective" "Weak" "Subsidence"  ; do
83          echo "<TD ALIGN=CENTER> $MET </TD>" >> $compf
84      done
85
86      echo '<TR>' >> $compf
87      for mask in $masks ; do
88         thredds=$HTML/$MET_D/mask$mask.png
89         echo '<TD  ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=80 WIDTH=120 SRC="'$thredds'"></a></TD>' >> $compf
90      done
91
92      echo '<TR>' >> $compf
93      for mask in $masks ; do
94         thredds=$HTML/$MET_D/$mask.png
95         echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf
96      done
97
98      echo '<TR>' >> $compf
99
100      ################   3 premieres metriques #####################"
101
102
103# Nouveaux tunings saisonniers
104if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version
105
106
107      seas=( YEAR DJF JJA )
108      comment=( "ETO-Weak YEAR" "circA DJF" "Sibe JJA" )
109      mask=( etow circA Sibe )
110
111      echo '<hr/>' >> $compf
112      echo '<h2> '$seas' mean </h2>' >> $compf
113      echo '<table>' >> $compf
114
115      ################   3 premieres metriques #####################"
116
117      for i in 0 1 2 ; do
118          echo "<TD ALIGN=CENTER> ${comment[$i]} </TD>" >> $compf
119      done
120
121      echo '<TR>' >> $compf
122      for i in 0 1 2 ; do
123         thredds=$HTML/METRICS/${seas[$i]}/mask${mask[$i]}.png
124         echo '<TD  ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=80 WIDTH=120 SRC="'$thredds'"></a></TD>' >> $compf
125      done
126
127      echo '<TR>' >> $compf
128      for i in 0 1 2 ; do
129         thredds=$HTML/METRICS/${seas[$i]}/${mask[$i]}.png
130         echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf
131      done
132
133      echo '</table>' >> $compf
134
135
136
137fi
138
139echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR $HTML00/lmdz/MultiSimu/$comp/entete.html
Note: See TracBrowser for help on using the repository browser.