source: BOL/Multi_atlas/html_entete.sh @ 3785

Last change on this file since 3785 was 3737, checked in by idelkadi, 4 years ago

Repository under svn of a first version of Multiatlas diagnostics for LMDZ. This version is adapted to be able to run a LMDZ multiatlas on an individual account on the ciclad machine of the IPSL. In this version, the parts to be modified are identified so as to subsequently adapt it to other machines.
Modifications following changes and simplification of access from CICLAD / ClimServ?? to the different "thredds"

  • Property svn:executable set to *
File size: 6.1 KB
Line 
1#!/bin/bash
2
3comp=$1
4shift
5
6local=`pwd -P`
7login=`whoami`
8hostname=`hostname`
9if [ ${hostname:0:5} = cicla ] ; then
10DODSDIR=/modfs/ipslfs/dods
11HTML00=http://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/$login
12machine=ciclad
13fi
14if [ ${hostname:0:5} = camel ] ; then
15DODSDIR=/modfs/ipslfs/dods
16fi
17if [ ${hostname:0:5} = irene ] ; then
18DODSDIR=
19fi
20if [ ${hostname:0:5} = jean- ] ; then
21DODSDIR=
22fi
23
24echo OK0
25ATLAS_DIR=$DODSDIR/$login/lmdz/atlas
26OUT_DIR=$DODSDIR/$login/lmdz/MultiSimu/$comp
27ref=`head -1 $OUT_DIR/def.txt | awk ' { print $1 } '`
28
29ZON_DIR=$OUT_DIR/ZON
30ZONC_DIR=$OUT_DIR/ZONC
31OUT_DIR_CESMEP=$DODSDIR/$login/C-ESM-EP/tmp_${comp}_C-ESM-EP_v2
32
33echo OK1
34#############################################################################
35
36compf=$OUT_DIR/entete.html
37\cp -f $local/HOWTO.html $OUT_DIR/../
38
39HTML0=$HTML00/lmdz/MultiSimu
40HTML=$HTML0/$comp
41HTML_CESMEP=$HTML00/C-ESM-EP/tmp_${comp}_C-ESM-EP_v2
42
43emptyelt='<td> - </td>'
44
45
46
47rm -f $compf ; touch $compf
48
49
50      ##############################################################
51      # MENU DEROULANT
52      ##############################################################
53      cat $local/enteteMulti.html >> $compf
54      echo '<h1 ALIGN=CENTER> <a href="'$HTML0'/all.html">(AUTRES) </a>Série de simulations préparatoires à CMIP6, LMDZ-Orchidee, CTRL : '$ref'</h1> ' >> $compf
55      cat <<......eod>> $compf
56       <ul id="menu">
57       <li><a href="#">Comparaisons</a>
58          <ul>
59          <li><a href="$HTML/ACCUEIL.html">$comp: Cette page</a> </li>
60          <li><a href="$HTML0/V5.3to5/ACCUEIL.html">V5.3to5 : Evolutions v5.3 -> v5.5</a> </li>
61          <li><a href="$HTML0/V5.4/ACCUEIL.html">V5.4 : Test sur v5.4</a> </li>
62          <li><a href="$HTML0/CMIP5to6/ACCUEIL.html">CMIP5to6 : Evolutions CMIP5->6</a> </li>
63          <li><a href="$HTML0/CPLV5.3to5/ACCUEIL.html">CPLV5.3to5 : NPv5.3->5.5, couplé</a> </li>
64          <li><a href="$HTML0/CPL5to6/ACCUEIL.html">CPL5to6 : IPSL-CM5 -> CM6, couplé</a> </li>
65          <li><a href="$HTML0/Guides5.3et5/ACCUEIL.html">Guides5.3et5 : NPv5.3->5.5, guidé</a> </li>
66          <li><a href="$HTML0/HOWTO.html">HOWTO contribute</a> </li>
67          <li><a href="http://forge.ipsl.jussieu.fr/igcmg/wiki/IPSLCM6 ">Liste des simulations CM6</a> </li>
68          <li><a href="https://vesg.ipsl.upmc.fr/thredds/catalog/IPSLFS/fabric/lmdz/MultiSimu/catalog.html">ALL : avail. directories </a> </li>
69        </ul></li>
70......eod
71      for SEAS in YEAR DJF JJA ; do
72      cat <<......eod>> $compf
73        <li><a href="#">Atlas $SEAS</a>
74          <ul>
75......eod
76      for proj in GLOB SH NH ; do for maps in BIAS MAPS ; do echo '<li><a href="'$HTML'/'$maps$proj$SEAS'.html">'$maps, $proj'</a> </li>' >> $compf ; done ; done
77      cat <<......eod>> $compf
78          </ul>
79        </li>
80......eod
81      done
82cat <<......eod>> $compf
83        <li><a href="#">Atlas C-ESM-EP</a>
84           <ul>
85......eod
86if [ -d $OUT_DIR_CESMEP ] ; then
87      cat <<......eod>> $compf
88       <li><a href="$HTML_CESMEP/JJACLIMvsOBS/atlas_JJACLIMvsOBS_tmp_${comp}.html">JJACLIMvsOBS</a> </li>
89       <li><a href="$HTML_CESMEP/ANMClimato/atlas_ANMClimato_tmp_${comp}.html">ANMClimato</a> </li>
90       <li><a href="$HTML_CESMEP/JJACLIMvsCTRL/atlas_JJACLIMvsCTRL_tmp_${comp}.html">JJACLIMvsCTRL</a> </li>
91       <li><a href="$HTML_CESMEP/JJAClimato/atlas_JJAClimato_tmp_${comp}.html">JJAClimato</a> </li>
92       <li><a href="$HTML_CESMEP/ANMCLIMvsCTRL/atlas_ANMCLIMvsCTRL_tmp_${comp}.html">ANMCLIMvsCTRL</a> </li>
93       <li><a href="$HTML_CESMEP/DJFCLIMvsCTRL/atlas_DJFCLIMvsCTRL_tmp_${comp}.html">DJFCLIMvsCTRL</a> </li>
94       <li><a href="$HTML_CESMEP/DJFCLIMvsOBS/atlas_DJFCLIMvsOBS_tmp_${comp}.html">DJFCLIMvsOBS</a> </li>
95       <li><a href="$HTML_CESMEP/JJACLIMvsOBS/atlas_DJFClimato_tmp_${comp}.html">DJFClimato</a> </li>
96       <li><a href="$HTML_CESMEP/ANMCLIMvsOBS/atlas_ANMCLIMvsOBS_tmp_${comp}.html">ANMCLIMvsOBS</a> </li>       
97......eod
98fi
99cat <<......eod>> $compf
100       </ul></li>
101       <li><a href="#">ESMvalTool</a>
102          <ul>
103......eod
104if [ -d $OUT_DIR/ESMVal_CVDP ] ; then
105      cat <<......eod>> $compf
106        <li><a href="$HTML/ESMVal_CVDP/index.html">Variability</a> </li>
107......eod
108fi
109if [ -d $OUT_DIR/ESMVal_PM ] ; then
110      cat <<......eod>> $compf
111          <li><a href="$HTML/ESMVal_PM/ta_zonal.html">ta_zonal</a> </li>
112          <li><a href="$HTML/ESMVal_PM/clt_latlon.html">clt_latlon</a> </li>
113          <li><a href="$HTML/ESMVal_PM/tas_latlon.html">tas_latlon</a> </li>
114          <li><a href="$HTML/ESMVal_PM/SW_CRE_latlon.html">SW_CRE_latlon</a> </li>
115          <li><a href="$HTML/ESMVal_PM/LW_CRE_latlon.html">LW_CRE_latlon</a> </li>
116          <li><a href="$HTML/ESMVal_PM/NET_CRE_latlon.html">NET_CRE_latlon</a> </li>
117          <li><a href="$HTML/ESMVal_PM/METRICS.html">Metrics</a> </li>
118......eod
119fi
120      cat <<......eod>> $compf
121        </ul></li>
122       <li><a href="#">METRICS</a>
123           <ul>
124              <li><a href="$HTML/METRICS.html">Tuning</a>
125              <li><a href="$HTML/METRICS_min.html">Tuning minimale</a>
126              <li><a href="$HTML/PCMDI.html">PCMDI metrics</a>
127           </ul>
128        </li>
129       <li><a href="#">Axes d'évaluation</a>
130          <ul>
131          <li><a href="$HTML/AXE1.html">Axe 1 : Continents</a> </li>
132          <li><a href="$HTML/AXE2.html">Axe 2 : Variabilité tropicale</a> </li>
133          <li><a href="$HTML/AXE3.html">Axe 3 : Nuages / rayonnement</a> </li>
134          <li><a href="$HTML/AXE4.html">Axe 4 : Régions polaires </a> </li>
135          <li><a href="$HTML/AXE5.html">Axe 5 : Moyennes latitudes</a> </li>
136          <li><a href="$HTML/AXE6.html">Axe 6 : Stratosphère</a> </li>
137          <li><a href="$HTML/AXE7.html">Axe 7 : Comparaisons Stations </a> </li>
138          </ul>
139        </li>
140
141......eod
142      cat <<......eod>> $compf
143      </ul> <hr>
144......eod
145
146
147 
148      #####################################################################
149      # Fichiers pour l'enetete
150      #####################################################################
151      cat $OUT_DIR/Table_simulations_$comp.html >> $compf
152     #####################################################################
153
154
155echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR $HTML/entete.html
Note: See TracBrowser for help on using the repository browser.