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