source: BOL/Multi_atlas/html_tuning_min.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: 3.4 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_min.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      echo '<TR>' >> $compf
67
68      ################   3 premieres metriques #####################"
69      masks="conv weak subs"
70      for MET in "Convective" "Weak" "Subsidence"  ; do
71          echo "<TD ALIGN=CENTER> $MET </TD>" >> $compf
72      done
73
74      echo '<TR>' >> $compf
75      for mask in $masks ; do
76         thredds=$HTML/$MET_D/mask$mask.png
77         echo '<TD  ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=80 WIDTH=120 SRC="'$thredds'"></a></TD>' >> $compf
78      done
79
80      echo '<TR>' >> $compf
81      for mask in $masks ; do
82         thredds=$HTML/$MET_D/$mask.png
83         echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf
84      done
85
86      echo '<TR>' >> $compf
87
88      ################   3 premieres metriques #####################"
89
90
91# Nouveaux tunings saisonniers
92if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version
93
94
95      seas=( YEAR DJF JJA )
96      comment=( "ETO-Weak YEAR" "circA DJF" "Sibe JJA" )
97      mask=( etow circA Sibe )
98
99      echo '<hr/>' >> $compf
100      echo '<h2> '$seas' mean </h2>' >> $compf
101      echo '<table>' >> $compf
102
103      ################   3 premieres metriques #####################"
104
105      for i in 0 1 2 ; do
106          echo "<TD ALIGN=CENTER> ${comment[$i]} </TD>" >> $compf
107      done
108
109      echo '<TR>' >> $compf
110      for i in 0 1 2 ; do
111         thredds=$HTML/METRICS/${seas[$i]}/mask${mask[$i]}.png
112         echo '<TD  ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=80 WIDTH=120 SRC="'$thredds'"></a></TD>' >> $compf
113      done
114
115      echo '<TR>' >> $compf
116      for i in 0 1 2 ; do
117         thredds=$HTML/METRICS/${seas[$i]}/${mask[$i]}.png
118         echo '<TD ALIGN=CENTER><A HREF="'$thredds'"><IMG HEIGHT=400 WIDTH=500 SRC="'$thredds'"></a></TD>' >> $compf
119      done
120
121      echo '</table>' >> $compf
122
123
124
125fi
126
127echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR $HTML00/lmdz/MultiSimu/$comp/entete.html
Note: See TracBrowser for help on using the repository browser.