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