1 | #!/bin/bash |
---|
2 | |
---|
3 | comp=$1 |
---|
4 | |
---|
5 | local=`pwd -P` |
---|
6 | login=`whoami` |
---|
7 | hostname=`hostname` |
---|
8 | if [ ${hostname:0:5} = cicla ] ; then |
---|
9 | DODSDIR=/modfs/ipslfs/dods |
---|
10 | HTML00=http://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/$login |
---|
11 | machine=ciclad |
---|
12 | fi |
---|
13 | if [ ${hostname:0:5} = camel ] ; then |
---|
14 | DODSDIR=/modfs/ipslfs/dods |
---|
15 | fi |
---|
16 | if [ ${hostname:0:5} = irene ] ; then |
---|
17 | DODSDIR= |
---|
18 | fi |
---|
19 | if [ ${hostname:0:5} = jean- ] ; then |
---|
20 | DODSDIR= |
---|
21 | fi |
---|
22 | |
---|
23 | ATLAS_DIR=$DODSDIR/$login/lmdz/atlas |
---|
24 | OUT_DIR=$DODSDIR/$login/lmdz/MultiSimu/$comp |
---|
25 | entetef=$OUT_DIR/entete.html |
---|
26 | ZON_DIR=$OUT_DIR/ZON |
---|
27 | |
---|
28 | ############################################################################# |
---|
29 | ############################################################################# |
---|
30 | |
---|
31 | compf=$OUT_DIR/METRICS.html |
---|
32 | echo $compf |
---|
33 | emptyelt='<td> - </td>' |
---|
34 | |
---|
35 | # Modification du html après l'introduction des tuning saisonniers |
---|
36 | HTML=$HTML00/lmdz/MultiSimu/$comp |
---|
37 | |
---|
38 | if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version |
---|
39 | MET_D=METRICS/YEAR |
---|
40 | else |
---|
41 | MET_D=METRICS |
---|
42 | fi |
---|
43 | |
---|
44 | entete=1 |
---|
45 | |
---|
46 | rm -f $compf ; touch $compf |
---|
47 | |
---|
48 | cat $entetef >> $compf |
---|
49 | |
---|
50 | echo '<hr/>' >> $compf |
---|
51 | cat <<......eod>> $compf |
---|
52 | <h2> Calcul de métriques sur des masques </h2> |
---|
53 | <h3> Les flux sont orientés vers le bas. |
---|
54 | Les moyennes sont faites sur les masques montrés entre le titre et le graphe. |
---|
55 | Pour ETOA, la figure correspond à la différence entre le rouge et le bleu. |
---|
56 | </h3> |
---|
57 | ......eod |
---|
58 | echo '<hr/>' >> $compf |
---|
59 | |
---|
60 | echo '<h3>' >> $compf |
---|
61 | |
---|
62 | echo '<hr/>' >> $compf |
---|
63 | echo '<h2> Moyennes annuelles - Annual mean </h2>' >> $compf |
---|
64 | echo '<table>' >> $compf |
---|
65 | |
---|
66 | ################ 3 premieres metriques #####################" |
---|
67 | masks="glob circA circAa interH" |
---|
68 | for MET in "Global" "Circum. Antart" "Circum. Antart anom" "Inter Hemispheric" ; do |
---|
69 | echo "<TD ALIGN=CENTER> $MET </TD>" >> $compf |
---|
70 | done |
---|
71 | |
---|
72 | echo '<TR>' >> $compf |
---|
73 | for mask in $masks ; do |
---|
74 | thredds=$HTML/$MET_D/mask$mask.png |
---|
75 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=150 WIDTH=200 SRC="'$thredds'"></a></TD>' >> $compf |
---|
76 | done |
---|
77 | |
---|
78 | echo '<TR>' >> $compf |
---|
79 | for mask in $masks ; do |
---|
80 | thredds=$HTML/$MET_D/$mask.png |
---|
81 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf |
---|
82 | done |
---|
83 | |
---|
84 | echo '<TR>' >> $compf |
---|
85 | |
---|
86 | ################ 3 premieres metriques #####################" |
---|
87 | masks="etoa etow etows" |
---|
88 | for MET in "East Tropic Ocean Anom. (ETOA)" "ETO anom : ETO - WEAK" "ETO anom : SUBS - WEAK" ; do |
---|
89 | echo "<TD ALIGN=CENTER> $MET </TD>" >> $compf |
---|
90 | done |
---|
91 | |
---|
92 | echo '<TR>' >> $compf |
---|
93 | for mask in $masks ; do |
---|
94 | thredds=$HTML/$MET_D/mask$mask.png |
---|
95 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=150 WIDTH=200 SRC="'$thredds'"></a></TD>' >> $compf |
---|
96 | done |
---|
97 | |
---|
98 | echo '<TR>' >> $compf |
---|
99 | for mask in $masks ; do |
---|
100 | thredds=$HTML/$MET_D/$mask.png |
---|
101 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf |
---|
102 | done |
---|
103 | |
---|
104 | echo '<TR>' >> $compf |
---|
105 | |
---|
106 | ################ 3 premieres metriques #####################" |
---|
107 | masks="conv weak subs otrop" |
---|
108 | for MET in "Convective" "Weak" "Subsidence" "Tropic oceans" ; do |
---|
109 | echo "<TD ALIGN=CENTER> $MET </TD>" >> $compf |
---|
110 | done |
---|
111 | |
---|
112 | echo '<TR>' >> $compf |
---|
113 | for mask in $masks ; do |
---|
114 | thredds=$HTML/$MET_D/mask$mask.png |
---|
115 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=150 WIDTH=200 SRC="'$thredds'"></a></TD>' >> $compf |
---|
116 | done |
---|
117 | |
---|
118 | echo '<TR>' >> $compf |
---|
119 | for mask in $masks ; do |
---|
120 | thredds=$HTML/$MET_D/$mask.png |
---|
121 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf |
---|
122 | done |
---|
123 | |
---|
124 | echo '<TR>' >> $compf |
---|
125 | |
---|
126 | ################ 3 premieres metriques #####################" |
---|
127 | masks="oce ter NAtl Arct" |
---|
128 | for MET in "Oceans" "Continent" "N. Atlantic" "Arctic Oce." ; do |
---|
129 | echo "<TD ALIGN=CENTER> $MET </TD>" >> $compf |
---|
130 | done |
---|
131 | |
---|
132 | echo '<TR>' >> $compf |
---|
133 | for mask in $masks ; do |
---|
134 | thredds=$HTML/$MET_D/mask$mask.png |
---|
135 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=150 WIDTH=200 SRC="'$thredds'"></a></TD>' >> $compf |
---|
136 | done |
---|
137 | |
---|
138 | echo '<TR>' >> $compf |
---|
139 | for mask in $masks ; do |
---|
140 | thredds=$HTML/$MET_D/$mask.png |
---|
141 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf |
---|
142 | done |
---|
143 | |
---|
144 | echo '</table>' >> $compf |
---|
145 | |
---|
146 | ##################################################################### |
---|
147 | |
---|
148 | |
---|
149 | # Nouveaux tunings saisonniers |
---|
150 | if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version |
---|
151 | |
---|
152 | for seas in DJF JJA ; do |
---|
153 | MET_D=METRICS/$seas |
---|
154 | echo '<hr/>' >> $compf |
---|
155 | echo '<h2> '$seas' mean </h2>' >> $compf |
---|
156 | echo '<table>' >> $compf |
---|
157 | |
---|
158 | ################ 3 premieres metriques #####################" |
---|
159 | masks="Sibe USA Arct NAtl circA" |
---|
160 | for MET in "Siberia" "US gr. plains" "Arctic" "N. Atlantic" "Circum Antart." ; do |
---|
161 | echo "<TD ALIGN=CENTER> $MET </TD>" >> $compf |
---|
162 | done |
---|
163 | |
---|
164 | echo '<TR>' >> $compf |
---|
165 | for mask in $masks ; do |
---|
166 | thredds=$HTML/$MET_D/mask$mask.png |
---|
167 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=150 WIDTH=200 SRC="'$thredds'"></a></TD>' >> $compf |
---|
168 | done |
---|
169 | |
---|
170 | echo '<TR>' >> $compf |
---|
171 | for mask in $masks ; do |
---|
172 | thredds=$HTML/$MET_D/$mask.png |
---|
173 | echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf |
---|
174 | done |
---|
175 | |
---|
176 | echo '</table>' >> $compf |
---|
177 | |
---|
178 | |
---|
179 | ##################################################################### |
---|
180 | done |
---|
181 | |
---|
182 | fi |
---|
183 | |
---|
184 | echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR $HTML00/lmdz/MultiSimu/$comp/entete.html |
---|