source: BOL/Multi_atlas/html_tuning.sh @ 3883

Last change on this file since 3883 was 3881, checked in by musat, 3 years ago

Changement des PATHS sur ciclad

  • Property svn:executable set to *
File size: 5.7 KB
Line 
1#!/bin/bash
2
3comp=$1
4
5local=`pwd -P`
6login=`whoami`
7hostname=`hostname`
8if [ ${hostname:0:5} = cicla ] ; then
9DODSDIR=/thredds/ipsl
10HTML00=http://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/$login
11machine=ciclad
12fi
13if [ ${hostname:0:5} = camel ] ; then
14DODSDIR=/thredds/ipsl
15fi
16if [ ${hostname:0:5} = irene ] ; then
17DODSDIR=
18fi
19if [ ${hostname:0:5} = jean- ] ; then
20DODSDIR=
21fi
22
23ATLAS_DIR=$DODSDIR/$login/lmdz/atlas
24OUT_DIR=$DODSDIR/$login/lmdz/MultiSimu/$comp
25entetef=$OUT_DIR/entete.html
26ZON_DIR=$OUT_DIR/ZON
27
28#############################################################################
29#############################################################################
30
31compf=$OUT_DIR/METRICS.html
32echo $compf
33emptyelt='<td> - </td>'
34
35# Modification du html après l'introduction des tuning saisonniers
36HTML=$HTML00/lmdz/MultiSimu/$comp
37
38if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version
39   MET_D=METRICS/YEAR
40else
41   MET_D=METRICS
42fi
43
44entete=1
45
46rm -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
150if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version
151
152for 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     #####################################################################
180done
181
182fi
183
184echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR $HTML00/lmdz/MultiSimu/$comp/entete.html
Note: See TracBrowser for help on using the repository browser.