[3684] | 1 | #!/bin/bash |
---|
| 2 | |
---|
[4342] | 3 | source ~/env_Multi_atlas.sh |
---|
| 4 | |
---|
[3684] | 5 | comp=$1 |
---|
| 6 | |
---|
| 7 | local=`pwd -P` |
---|
[4342] | 8 | |
---|
| 9 | if [ 1 == 0 ]; then |
---|
[3684] | 10 | login=`whoami` |
---|
| 11 | hostname=`hostname` |
---|
| 12 | if [ ${hostname:0:5} = cicla ] ; then |
---|
[3881] | 13 | DODSDIR=/thredds/ipsl |
---|
[4307] | 14 | dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds |
---|
| 15 | HTML00=http://${dthredds}/$login |
---|
[3684] | 16 | machine=ciclad |
---|
| 17 | fi |
---|
[4307] | 18 | if [ ${hostname:0:5} = spiri ] ; then |
---|
| 19 | DODSDIR=/thredds/ipsl |
---|
| 20 | dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds |
---|
| 21 | HTML00=http://${dthredds}/$login |
---|
| 22 | machine=spirit |
---|
| 23 | fi |
---|
[3684] | 24 | if [ ${hostname:0:5} = camel ] ; then |
---|
[3881] | 25 | DODSDIR=/thredds/ipsl |
---|
[3684] | 26 | fi |
---|
| 27 | if [ ${hostname:0:5} = irene ] ; then |
---|
| 28 | DODSDIR= |
---|
| 29 | fi |
---|
| 30 | if [ ${hostname:0:5} = jean- ] ; then |
---|
| 31 | DODSDIR= |
---|
| 32 | fi |
---|
[4342] | 33 | fi |
---|
[3684] | 34 | |
---|
| 35 | ATLAS_DIR=$DODSDIR/$login/lmdz/atlas |
---|
| 36 | OUT_DIR=$DODSDIR/$login/lmdz/MultiSimu/$comp |
---|
| 37 | entetef=$OUT_DIR/entete.html |
---|
| 38 | ZON_DIR=$OUT_DIR/ZON |
---|
| 39 | |
---|
| 40 | ############################################################################# |
---|
| 41 | ############################################################################# |
---|
| 42 | |
---|
| 43 | compf=$OUT_DIR/METRICS_min.html |
---|
| 44 | echo $compf |
---|
| 45 | emptyelt='<td> - </td>' |
---|
| 46 | |
---|
| 47 | # Modification du html après l'introduction des tuning saisonniers |
---|
| 48 | HTML=$HTML00/lmdz/MultiSimu/$comp |
---|
| 49 | |
---|
| 50 | if [ -d $OUT_DIR/METRICS/YEAR ] ; then # Nouvelle version |
---|
| 51 | MET_D=METRICS/YEAR |
---|
| 52 | else |
---|
| 53 | MET_D=METRICS |
---|
| 54 | fi |
---|
| 55 | |
---|
| 56 | entete=1 |
---|
| 57 | |
---|
| 58 | rm -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 |
---|
| 104 | if [ -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 | |
---|
| 137 | fi |
---|
| 138 | |
---|
| 139 | echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR $HTML00/lmdz/MultiSimu/$comp/entete.html |
---|