source: BOL/Multi_atlas/html_axe7.sh @ 4325

Last change on this file since 4325 was 4307, checked in by musat, 2 years ago

Fusion entre la version commune (compte fabric) et la version perso
du multi-atlas incluant

  • la fiabilisation de la realisation des cartes
  • la correction des coupes (latitude,altitude) pour les biais
  • l'ajout d'une option pour des multi-atlas par rapport a une simulation de reference
  • l'ajout d'options pour un multi-atlas regional
  • la mise a jour des thredds (repertoire & html) pour ciclad

IonelaMusat?

  • Property svn:executable set to *
File size: 3.0 KB
Line 
1#!/bin/bash
2
3
4comp=$1
5
6local=`pwd -P`
7login=`whoami`
8hostname=`hostname`
9if [ ${hostname:0:5} = cicla ] ; then
10DODSDIR=/thredds/ipsl
11dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
12HTML00=http://${dthredds}/$login
13machine=ciclad
14fi
15if [ ${hostname:0:5} = spiri ] ; then
16DODSDIR=/thredds/ipsl
17dthredds=thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds
18HTML00=http://${dthredds}/$login
19machine=spirit
20fi
21if [ ${hostname:0:5} = camel ] ; then
22DODSDIR=/thredds/ipsl
23fi
24if [ ${hostname:0:5} = irene ] ; then
25DODSDIR=
26fi
27if [ ${hostname:0:5} = jean- ] ; then
28DODSDIR=
29fi
30
31COMP_D=$DODSDIR/$login/lmdz/MultiSimu/$comp
32entetef=$COMP_D/entete.html
33
34local=`pwd`
35
36
37compf=$COMP_D/AXE7.html
38HTML=$HTML00/lmdz/MultiSimu/$comp
39
40DIRST=$DODSDIR/$login/lmdz/STATIONS
41HTMLST=$HTML00/lmdz/STATIONS
42
43DEF_FILE=$COMP_D/def.txt
44
45
46if [ -f $entetef ] ; then cat $entetef > $compf ; else \rm -f $compf ; touch $compf ; fi
47
48echo '<hr>' >> $compf
49
50cat <<eod>> $compf
51<h1> Comparaison aux stations </h1>
52
53<hr>
54Responsable : Fredho <br>
55
56eod
57
58liste_sim=""
59for s in `awk ' {print $1} ' $DEF_FILE | uniq` ; do liste_sim="$liste_sim $s" ; done
60
61
62# Regroupement des fichiers images stations concernes
63#----------------------------------------------------
64mkdir -p $COMP_D/STATIONS ; cd $COMP_D/STATIONS
65
66sortir=1
67for s in  $liste_sim  ; do
68   if [ -d $DIRST/Figure_AMMA/$s -o -d $DIRST/Figure_SIRTA/$s -o -d $DIRST/Figure_SGP/$s ] ; then
69      ln -sf $DIRST/Figure_AMMA/$s/*png .
70      ln -sf $DIRST/Figure_SIRTA/$s/*png .
71      ln -sf $DIRST/Figure_SGP/$s/*png .
72      sortir=0
73   fi
74done
75
76if [ $sortir = 0 ] ; then
77
78# html multi simulations par station
79# ----------------------------------
80virgu=""
81for year in 2006 2007 2009 2011 2012; do
82   echo '<li><h2> '$year' :' >> $compf
83   for station in wj ba ag na SIRTA SGP  ; do
84     if [ "`ls *${station}*_${year}.png`" != "" ] ; then
85      lvar=( `ls *${station}*_${year}.png | cut -d_ -f1 | uniq` )
86      echo ${lvar[*]}
87      echo ${#lvar[@]}
88      lsim=( $liste_sim )
89       lpng="" ; virg="" ; for var in ${lvar[*]} ; do for s in $liste_sim ; do file=${var}_${station}_${s}_${year} ; echo FILE $file ; if [ -f "$file.png" ] ; then lpng="$lpng$virg$file" ; fi ; virg="," ; done  ; done
90      ~/LMDZ/MultiSimu/concat_html.sh . "OK" $lpng ${#lsim[@]} > $station$year.html
91cat <<eod>> $compf
92$virgu <a href="$HTML/STATIONS/$station$year.html"> $station </a>
93eod
94virgu=","
95     fi
96   done
97   echo '</li></h2>' >> $compf
98done
99
100
101cd $local
102
103for figu in AMMA SIRTA SGP; do
104cat <<eod>> $compf
105<li><h2> $figu simulation  :
106eod
107virg=""
108for s in $liste_sim ; do
109if [ -d $DIRST/Figure_$figu/$s ] ; then
110cat <<eod>> $compf
111$virg <a href="$HTMLST/Figure_$figu/$s/index2006.html"> $s </a>
112eod
113virg=,
114fi
115done
116cat <<eod>> $compf
117</li></h2>
118eod
119done
120
121fi # sortir=0
122
123
124if [ -d $COMP_D/STATSE ] ; then
125cat <<eod>> $compf
126<br><hr><br>
127<h2><li><a href="$HTML/STATSE/index.html"> Cycle saisonniers moyens aux bouees </a> </li></h2>
128eod
129fi
130
131cat <<eod>> $compf
132</body>
133</html>
134eod
135
136
137echo $compf | sed -e 's:/thredds/ipsl/:http\://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/:'
Note: See TracBrowser for help on using the repository browser.