[3684] | 1 | #set -vx |
---|
| 2 | |
---|
| 3 | local=`pwd -P` |
---|
| 4 | cd $local |
---|
| 5 | echo REPERTOIRE LOCAL : $local |
---|
| 6 | |
---|
| 7 | echo '############################################################' |
---|
| 8 | echo 0/ gestion des options |
---|
| 9 | echo '############################################################' |
---|
| 10 | pcmdi_metrics=0 |
---|
| 11 | tuning_metrics=1 |
---|
| 12 | und=0 |
---|
| 13 | zon=1 |
---|
| 14 | html=1 |
---|
| 15 | atlas=1 |
---|
[3915] | 16 | newatlas=1 |
---|
[3684] | 17 | atlas_cesmep=0 |
---|
| 18 | get=0 |
---|
| 19 | cmor=1 |
---|
| 20 | regdyn=0 |
---|
| 21 | lma=0 |
---|
| 22 | trmm=0 |
---|
| 23 | axe2=0 |
---|
| 24 | axe4=0 |
---|
| 25 | esmval2=0 |
---|
| 26 | refld_histo=0 |
---|
| 27 | vertcld_calipso=0 |
---|
| 28 | stations_day=0 |
---|
| 29 | stations_mth=0 |
---|
| 30 | qsub=0 |
---|
| 31 | mjo=0 |
---|
| 32 | river=0 |
---|
[3885] | 33 | dataref=1 |
---|
[3684] | 34 | |
---|
[3885] | 35 | ref=OBS |
---|
| 36 | echo $ref |
---|
[3684] | 37 | # ./job_multi.sh -1D 0 -get 0 -atlas 0 -pcmdi 0 -tuning 0 -lma 0 -trmm 0 |
---|
| 38 | runstxt=$local/runs.txt |
---|
| 39 | |
---|
| 40 | while test -n "${1}"; do |
---|
| 41 | case $1 in |
---|
| 42 | -1D) und=$2 ; shift ;; |
---|
| 43 | -get) get=$2 ; shift ;; |
---|
| 44 | -cmor) cmor=$2 ; shift ;; |
---|
| 45 | -zon) zon=$2 ; shift ;; |
---|
| 46 | -atlas) atlas=$2 ; shift ;; |
---|
| 47 | -atlas_cesmep) atlas_cesmep=$2 ; shift ;; |
---|
| 48 | -pcmdi) pcmdi_metrics=$2 ; shift ;; |
---|
| 49 | -tuning) tuning_metrics=$2 ; shift ;; |
---|
| 50 | -runstxt) runstxt=$2 ; shift ;; |
---|
| 51 | -lma) lma=$2 ; shift ;; |
---|
| 52 | -trmm) trmm=$2 ; shift ;; |
---|
| 53 | -axe4) axe4=$2 ; shift ;; |
---|
| 54 | -axe2) axe2=$2 ; shift ;; |
---|
| 55 | -regdyn) regdyn=$2 ; shift ;; |
---|
| 56 | -esmval2) esmval2=$2 ; shift ;; |
---|
| 57 | -stations_day) stations_day=$2 ; shift ;; |
---|
| 58 | -stations_mth) stations_mth=$2 ; shift ;; |
---|
| 59 | -refld_histo) refld_histo=$2 ; shift ;; |
---|
| 60 | -vertcld_calipso) vertcld_calipso=$2 ; shift ;; |
---|
| 61 | -mjo) mjo=$2 ; shift ;; |
---|
| 62 | -river) river=$2 ; shift ;; |
---|
[3885] | 63 | -dataref) dataref=$2 ; shift ;; |
---|
[3684] | 64 | *) comp=$1 ;; |
---|
| 65 | esac |
---|
| 66 | shift |
---|
| 67 | done |
---|
| 68 | |
---|
| 69 | rm -f out.com$$ |
---|
| 70 | runstxt=$local/runs.txt |
---|
| 71 | echo runstxt= $runstxt |
---|
| 72 | |
---|
| 73 | echo DODSDIR : $DODSDIR |
---|
| 74 | MAIN_SE=$DODSDIR/$login/lmdz/SE |
---|
| 75 | TS_DA=$DODSDIR/$login/lmdz/TS_DA |
---|
| 76 | TS_MO=$DODSDIR/$login/lmdz/TS_MO |
---|
| 77 | MULTIDIR=$DODSDIR/$login/lmdz/MultiSimu |
---|
| 78 | |
---|
| 79 | if [ ! -d $MULTIDIR ] ; then mkdir -p $MULTIDIR ; fi |
---|
| 80 | if [ ! -d $MAIN_SE ] ; then mkdir -p $MAIN_SE ; fi |
---|
| 81 | if [ ! -d $MAIN_MO ] ; then mkdir -p $MAIN_MO ; fi |
---|
| 82 | if [ ! -d $MAIN_DA ] ; then mkdir -p $MAIN_DA ; fi |
---|
| 83 | |
---|
| 84 | COMP_D=$MULTIDIR/$comp |
---|
| 85 | DEF_FILE=$COMP_D/def.txt ; if [ ! -f $DEF_FILE ] ; then echo renseigner $DEF_FILE ; exit ; fi |
---|
| 86 | |
---|
| 87 | listsims="" ; for s in `awk ' {print $1} ' $DEF_FILE | uniq` ; do listsims="$listsims $s" ; done |
---|
| 88 | echo listsims $listsims |
---|
| 89 | |
---|
| 90 | echo ### On supprime dans def.txt les lignes vides ######## |
---|
| 91 | sed -i "/^[ \t]*$/d" $DEF_FILE |
---|
| 92 | |
---|
| 93 | echo ### On teste d abord la coherence des noms des simulations dans def.txt et $runstxt ################ |
---|
| 94 | echo MULTI-ATLAS "$comp" |
---|
| 95 | for s in $listsims ; do |
---|
| 96 | srun=`grep -w "^$s " $runstxt | awk ' { print $1 } '` |
---|
| 97 | echo 's='"$s" ' srun=' "$srun" |
---|
| 98 | if [ "$s" = "$srun" ] ; then |
---|
| 99 | echo Meme nom de la simulation dans def.txt et $runstxt 's=' "$s" ' srun=' "$srun" |
---|
| 100 | else |
---|
| 101 | echo ATTENTION : la simulation "$s" de votre def.txt n est pas repertoriee dans $runstxt |
---|
| 102 | echo ou le meme nom est attribue a plusieures simulations |
---|
| 103 | echo Il faut la rajouter dans $runstxt |
---|
[3737] | 104 | echo avec le chemin vers les SE et TS dans ciclad : /modfs/$login/IGCM_OUT |
---|
[3684] | 105 | echo ou renomer votre simulation |
---|
| 106 | exit |
---|
| 107 | fi |
---|
| 108 | done |
---|
| 109 | #exit |
---|
| 110 | listruns="" |
---|
| 111 | listrunss="" |
---|
| 112 | listrunse="" |
---|
| 113 | if [ ! -d $MAIN_SE/ORIG ] ; then mkdir -p $MAIN_SE/ORIG ; fi |
---|
| 114 | for s in $listsims ; do |
---|
| 115 | simdir=`grep -w "^$s " $runstxt | awk ' { print $2 } '` |
---|
| 116 | echo $simdir |
---|
| 117 | ( cd $MAIN_SE/ORIG ; ln -sf $simdir/ATM/Analyse/SE/*mth*nc . ) > /dev/null 2>&1 |
---|
| 118 | echo $simdir |
---|
| 119 | ss=`basename $simdir ` |
---|
| 120 | listruns="$listruns $ss" |
---|
| 121 | for year in `grep -w "^$s" $DEF_FILE | awk ' { print $2 } '` ; do |
---|
| 122 | listrunss="$listrunss ${ss}_$year" |
---|
| 123 | listrune="$listrune ${ss}_SE_$year" |
---|
| 124 | done |
---|
| 125 | done |
---|
| 126 | echo listruns = $listruns |
---|
| 127 | echo listrunss= $listrunss |
---|
| 128 | echo listrune= $listrune |
---|
[3915] | 129 | echo ================================================================ |
---|
| 130 | echo la commande suivante |
---|
| 131 | echo ls -lrt $MAIN_SE/ORIG |
---|
| 132 | echo peut prendre beaucoup de temps lorsque |
---|
| 133 | echo l acces aux espaces du CCRT et/ou de l IDRIS thredds est lent ou si |
---|
| 134 | echo les espaces /thredds/tgcc et/ou /thredds/idris ne sont pas montes sur ciclad. |
---|
| 135 | echo On ne l utilise plus !!! |
---|
| 136 | echo ================================================================ |
---|
| 137 | ###ls -lrt $MAIN_SE/ORIG |
---|
[3885] | 138 | |
---|
| 139 | ns=0 |
---|
| 140 | listsimss="" ; |
---|
| 141 | for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE` ; do |
---|
| 142 | if [ $dataref = 0 ] ; then |
---|
| 143 | if [ ${ns} = 0 ] ; then |
---|
| 144 | ref=$ss |
---|
| 145 | echo ref=$ref |
---|
| 146 | fi |
---|
| 147 | fi |
---|
| 148 | let "ns = ${ns} + 1" |
---|
| 149 | listsimss="$listsimss $ss" ; |
---|
| 150 | done |
---|
| 151 | echo ref=$ref |
---|
| 152 | |
---|
[3684] | 153 | listsimse="" ; for se in `awk ' {print $1"_SE_"$2 } ' $DEF_FILE` ; do listsimse="$listsimse $se" ; done |
---|
| 154 | echo listsims $listsims |
---|
| 155 | echo listsimss $listsimss |
---|
| 156 | echo listsimse $listsimse |
---|
| 157 | |
---|
| 158 | echo SIMULATIONS: $listsims |
---|
| 159 | |
---|
[3915] | 160 | RUNS="" |
---|
| 161 | RUNS=`awk ' {print $1"_"$2 } ' $DEF_FILE` |
---|
| 162 | echo listrunss=$RUNS |
---|
| 163 | |
---|
[3684] | 164 | echo '########################################################################' |
---|
| 165 | echo 1/ Rapatriement des simulations manquantes |
---|
| 166 | echo '########################################################################' |
---|
| 167 | #### AI avril 2020 ################ Avant l acces directe aux simulations sur le dods du CCRT |
---|
| 168 | # Adresses web ne sont plus a jours |
---|
| 169 | # A commenter les adresses web CCRT |
---|
| 170 | # A mettre a jours les adress web IDRIS |
---|
| 171 | # Rajouter d'autres machines avec rsynk, wget ou ssh ... |
---|
| 172 | |
---|
| 173 | if [ $get = 1 ] ; then |
---|
| 174 | cd $MAIN_SE |
---|
| 175 | for sim in $listsimss ; do echo ./getun.sh ${sim} >> $local/out.com$$ ; ./getun.sh ${sim} ; done |
---|
| 176 | cd $TS_DA ; pwd |
---|
| 177 | for sim in $listsimss ; do echo ./getun.sh ${sim} >> $local/out.com$$ ; ./getun.sh ${sim} ; done |
---|
| 178 | cd $TS_MO ; pwd |
---|
| 179 | for sim in $listsimss ; do echo ./getun.sh ${sim} >> $local/out.com$$ ; ./getun.sh ${sim} ; done |
---|
| 180 | fi |
---|
| 181 | |
---|
| 182 | if [ $cmor = 1 ] ; then |
---|
| 183 | cp cmor.sh $MAIN_SE/. |
---|
| 184 | cp season.sh $MAIN_SE/. |
---|
| 185 | cd $MAIN_SE |
---|
| 186 | chmod +x cmor.sh |
---|
| 187 | chmod +x season.sh |
---|
| 188 | ######################################################################### |
---|
| 189 | # 1.2 "Cmorisation des fichiers mensuels : traduction au format CMIP |
---|
| 190 | ######################################################################### |
---|
| 191 | # Deux lignes suivantes modif FH 2016/11/09 |
---|
[3737] | 192 | # Files are taken from /modfs/ipslfs/dods/fabric/lmdz/SE/ORIG and |
---|
| 193 | # results are in /modfs/ipslfs/dods/fabric/lmdz/SE/CMOR |
---|
[3684] | 194 | ######################################################################### |
---|
| 195 | ./cmor.sh -runsfile $runstxt $comp |
---|
| 196 | if [ $? != 0 ] ; then exit ; fi # Probleme de histmth non present. On arrete tout |
---|
| 197 | |
---|
| 198 | ######################################################################### |
---|
| 199 | # 1.3 Interpolate fields on a common horizontal grid (VLR) and |
---|
| 200 | ######################################################################### |
---|
| 201 | # average in time "YEAR", "JJA" ... |
---|
| 202 | # Results are put on |
---|
[3737] | 203 | # /modfs/ipslfs/dods/fabric/lmdz/VLR/YEAR/[SIMU_NAME]_[period]/NC |
---|
[3684] | 204 | # If wanting to rerun season.sh for observations : |
---|
| 205 | # ./season.sh -s OBS |
---|
| 206 | ######################################################################### |
---|
| 207 | ./season.sh -comp $comp |
---|
| 208 | cd $local |
---|
| 209 | fi |
---|
| 210 | |
---|
| 211 | echo '########################################################################' |
---|
| 212 | echo 2/ Lancement des atlas manquant |
---|
| 213 | echo '########################################################################' |
---|
| 214 | natlas=`wc -l $COMP_D/atlas-def | awk ' { print $1 } '` |
---|
| 215 | count_atlas=0 |
---|
| 216 | |
---|
| 217 | if [ $atlas = 1 ] ; then |
---|
[3915] | 218 | if [ $newatlas = 1 ]; then |
---|
| 219 | sed -e 's/COMPAR/'${comp}'/' ${local}/atlas/make_atlas.sh > ${local}/atlas/make_atlas_${comp}.sh |
---|
| 220 | $submit -v COMP=${comp},DATAREF=${dataref} ${local}/atlas/make_atlas_${comp}.sh |
---|
| 221 | |
---|
[3917] | 222 | ./make_timecount.sh ${comp} |
---|
| 223 | |
---|
[3915] | 224 | else |
---|
| 225 | |
---|
[3684] | 226 | for sim in $listsimss ; do |
---|
| 227 | il=1 |
---|
| 228 | if [ ! -f $COMP_D/atlas-def ] ; then |
---|
| 229 | echo Definir les atlas a construire dans $COMP_D/atlas-def |
---|
| 230 | echo Example : |
---|
| 231 | cat $COMP_D/../CMIP5to6/atlas-def |
---|
| 232 | fi |
---|
| 233 | while [ $il -le $natlas ] ; do |
---|
| 234 | line=`sed -n -e ${il}p $COMP_D/atlas-def` |
---|
| 235 | seas=`echo $line | awk ' { print $1 } '` |
---|
| 236 | proj=`echo $line | awk ' { print $2 } '` |
---|
| 237 | vars=`echo $line | awk ' { print $3 } '` |
---|
| 238 | atlas=${sim}+${seas}+${proj}+$vars |
---|
| 239 | echo AAAAAAAAAAAAAAAAAAAAAAAA $atlas |
---|
[3885] | 240 | #grep $atlas $COMP_D/ATLAS/atlas_OK |
---|
[3684] | 241 | echo BBBBBB |
---|
[3885] | 242 | #if [ "`grep $atlas $COMP_D/ATLAS/atlas_OK`" = "" ] ; then |
---|
[3684] | 243 | cd $local/atlas ; pwd ; ls -l atlas.sh |
---|
| 244 | varg=`echo $vars | sed -e 's/,/+/g'` |
---|
| 245 | echo Atlas $atlas a creer |
---|
| 246 | if [ $qsub = 0 ] ; then |
---|
[3885] | 247 | ./atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt |
---|
[3684] | 248 | else |
---|
[3885] | 249 | $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt atlas.sh |
---|
[3684] | 250 | fi |
---|
[3885] | 251 | echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg" atlas.sh >> out.com$$ |
---|
| 252 | echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg" atlas.sh |
---|
[3684] | 253 | (( count_atlas = $count_atlas + 1 )) |
---|
| 254 | (( il = $il + 1 )) |
---|
| 255 | done |
---|
| 256 | done |
---|
| 257 | if [ $count_atlas != 0 ] ; then |
---|
| 258 | echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' |
---|
| 259 | echo Les atlas manquant ont ete lances. Attendre leur |
---|
| 260 | echo creation pour relancer job_multi.sh |
---|
| 261 | echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' |
---|
| 262 | # exit |
---|
| 263 | fi |
---|
| 264 | |
---|
[3915] | 265 | fi #newatlas |
---|
| 266 | fi #atlas |
---|
| 267 | |
---|
[3684] | 268 | # atlas_cesmep : cles pour activer les nouveau atlas (C-ESM-EP) |
---|
| 269 | if [ $atlas_cesmep = 1 ] ; then |
---|
| 270 | cd ~/LMDZ/C-ESM-EP |
---|
| 271 | ./AtlasLMDZ.sh -runsfile $runstxt $comp |
---|
| 272 | fi # atlas_cesmep |
---|
| 273 | |
---|
| 274 | echo '########################################################################' |
---|
| 275 | echo 3/ Calcul des moyennes zonales nco |
---|
| 276 | echo '########################################################################' |
---|
| 277 | |
---|
| 278 | |
---|
| 279 | #trace moy.zonale OBS + multi-simulations |
---|
| 280 | if [ $zon = 1 ] ; then |
---|
| 281 | cd $local |
---|
| 282 | mkdir -p $COMP_D/ZON |
---|
| 283 | for sim in $listsimse OBS ; do |
---|
| 284 | years=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $2 } '` |
---|
| 285 | run=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $1 } '` |
---|
| 286 | ./make_MOY.sh "$years" YEAR "$run" GLOB |
---|
| 287 | ./make_MOY.sh "$years" YEAR "$run" ZON |
---|
| 288 | ./make_MOY.sh "$years" JJA "$run" ZON |
---|
| 289 | ./make_MOY.sh "$years" DJF "$run" ZON |
---|
| 290 | ./make_MOY.sh "$years" JJAS "$run" AMMACROSS |
---|
| 291 | done |
---|
| 292 | cd $local |
---|
| 293 | ### ajout nuages LMDZ dans la compa et doit faire des liens symbol. sur |
---|
| 294 | #### les OBS calipso toujurs pour le moment |
---|
| 295 | ./mk_clouds_NOcalipso.sh YEAR ZON |
---|
| 296 | ./mk_clouds_NOcalipso.sh DJF ZON |
---|
| 297 | ./mk_clouds_NOcalipso.sh JJA ZON |
---|
| 298 | ./mk_clouds_NOcalipso.sh JJAS AMMACROSS |
---|
| 299 | # |
---|
| 300 | pwd |
---|
[3700] | 301 | ./multi_ZONE.sh YEAR $comp ZON -runsfile $runstxt |
---|
| 302 | ./multi_ZONE.sh JJA $comp ZON -runsfile $runstxt |
---|
| 303 | ./multi_ZONE.sh DJF $comp ZON -runsfile $runstxt |
---|
| 304 | ./multi_ZONE.sh JJAS $comp AMMACROSS -runsfile $runstxt |
---|
| 305 | |
---|
[3684] | 306 | fi |
---|
| 307 | |
---|
| 308 | echo '########################################################################' |
---|
| 309 | echo 4/ Lancement du 1D si necessaire |
---|
| 310 | echo '########################################################################' |
---|
| 311 | if [ ! -f $COMP_D/1D/1D.html -a $und = 1 ] ; then |
---|
| 312 | cd $COMP_D |
---|
| 313 | ~/LMDZ/1D/serie1d.sh $comp |
---|
| 314 | cd $local |
---|
| 315 | fi |
---|
| 316 | |
---|
| 317 | echo '########################################################################' |
---|
| 318 | echo 5/ Métriques |
---|
| 319 | echo '########################################################################' |
---|
| 320 | if [ $tuning_metrics = 1 -a ! -d $COMP_D/METRICS ] ; then |
---|
| 321 | echo metrics.sh |
---|
[3695] | 322 | cd $local/METRICS |
---|
[3684] | 323 | ./metrics.sh $comp |
---|
| 324 | fi |
---|
| 325 | |
---|
| 326 | if [ $regdyn = 1 ]; then |
---|
| 327 | cd ~/users/musat/regdyn/clean_regdyn |
---|
| 328 | ./mk_all_regdyn.sh $comp 0 |
---|
| 329 | cd $local |
---|
| 330 | fi |
---|
| 331 | |
---|
| 332 | if [ $esmval2 = 1 ]; then |
---|
| 333 | cd $local |
---|
| 334 | ./cvdp4atlas.sh $comp |
---|
| 335 | ./perfm4atlas.sh $comp |
---|
| 336 | fi |
---|
| 337 | |
---|
| 338 | if [ $mjo = 1 ]; then |
---|
| 339 | cd ~/users/idelkadi/MJO |
---|
| 340 | ./make_diagnosMJO.sh $comp |
---|
| 341 | fi |
---|
| 342 | |
---|
| 343 | if [ $river = 1 ]; then |
---|
| 344 | cd ~/users/idelkadi/AXE1/River |
---|
| 345 | ./make_diagnoRiver.sh $comp |
---|
| 346 | fi |
---|
| 347 | |
---|
| 348 | if [ $lma = 1 ]; then |
---|
| 349 | cd $local |
---|
| 350 | ./make_lma.sh $comp |
---|
| 351 | fi |
---|
| 352 | if [ $axe2 = 1 ]; then |
---|
| 353 | cd $local |
---|
| 354 | ./make_axe2.sh -runstxt $runstxt $comp |
---|
| 355 | fi |
---|
| 356 | if [ $trmm = 1 ]; then |
---|
| 357 | cd ~/users/mbonaz/ |
---|
| 358 | ./Axe2_Marine.sh $comp |
---|
| 359 | cd $local |
---|
| 360 | fi |
---|
| 361 | cd $local |
---|
| 362 | if [ $pcmdi_metrics = 1 ] ; then |
---|
| 363 | ./make_pcmdi.sh $comp |
---|
| 364 | fi |
---|
| 365 | if [ $axe4 = 1 ]; then |
---|
| 366 | cd $local |
---|
| 367 | ./make_axe4.sh $comp |
---|
| 368 | fi |
---|
| 369 | |
---|
| 370 | if [ "$reflcld_histo" = "1" ] ; then |
---|
| 371 | cd ~/users/idelkadi/AXE3/ |
---|
| 372 | ./make_scatReflCld.sh $comp |
---|
| 373 | cd $local |
---|
| 374 | fi |
---|
| 375 | |
---|
| 376 | if [ $vertcld_calipso = 1 ] ; then |
---|
| 377 | cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/DJF |
---|
| 378 | ./make_VerticalMzCldCalipso.sh $comp |
---|
| 379 | cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/JJA |
---|
| 380 | ./make_VerticalMzCldCalipso.sh $comp |
---|
| 381 | cd ~/users/idelkadi/AXE3/Calipso/Stratos |
---|
| 382 | ./make_StratosCalipso.sh $comp |
---|
| 383 | fi |
---|
| 384 | |
---|
| 385 | |
---|
| 386 | echo '########################################################################' |
---|
| 387 | echo 6/ Stations |
---|
| 388 | echo '########################################################################' |
---|
| 389 | |
---|
| 390 | if [ $stations_day = 1 ] ; then |
---|
| 391 | ~/users/Binta/bibi.sh $comp |
---|
| 392 | ~/users/cheruy/bibi.sh $comp |
---|
| 393 | fi |
---|
| 394 | |
---|
| 395 | if [ $stations_mth = 1 ] ; then |
---|
| 396 | ~/users/traore/SE_buoy.sh $comp |
---|
| 397 | fi |
---|
| 398 | |
---|
| 399 | echo '########################################################################' |
---|
| 400 | echo 7/ generation des pages html |
---|
| 401 | echo '########################################################################' |
---|
| 402 | |
---|
| 403 | if [ $html = 1 ] ; then |
---|
| 404 | echo ./make_html_libigcm_ai.sh --comp $comp |
---|
| 405 | ./make_html_libigcm.sh --comp $comp |
---|
| 406 | cd $local |
---|
[3915] | 407 | ./html_entete.sh ${comp} ${dataref} |
---|
| 408 | ./make_index_html.sh ${comp} ${dataref} |
---|
[3684] | 409 | ./html_tuning.sh $comp |
---|
| 410 | ./html_tuning_min.sh $comp |
---|
| 411 | ./html_accueil.sh $comp |
---|
| 412 | ./html_1D.sh $comp |
---|
| 413 | ./html_lma.sh $comp |
---|
| 414 | ./html_pcmdi.sh $comp |
---|
| 415 | ./html_all.sh >| $MULTIDIR/all.html |
---|
| 416 | |
---|
| 417 | # html pour les métriques |
---|
| 418 | # cat $COMP_D/entete.html doc_pcmdi.html >| $COMP_D/PCMDI.html |
---|
| 419 | # ref=`echo $listsimss | awk ' { print $1 } '` |
---|
| 420 | # echo "<h1> Metrics with respect to $ref </h1>" >> $COMP_D/PCMDI.html |
---|
| 421 | # cat $COMP_D/pcmdi_metrics.html >> $COMP_D/PCMDI.html |
---|
| 422 | # echo "<h1> Metrics with respect to AR4.00 </h1>" >> $COMP_D/PCMDI.html |
---|
| 423 | # cat $COMP_D/metrics-AR4-as-ref.html >> $COMP_D/PCMDI.html |
---|
| 424 | # echo "<h1> Metrics with respect to CMIP5/AMIP multi model </h1>" >> $COMP_D/PCMDI.html |
---|
| 425 | # cat $COMP_D/metrics-CMIP5-AMIP-as-ref.html >> $COMP_D/PCMDI.html |
---|
| 426 | for i in 1 2 3 4 5 6 7 ; do |
---|
| 427 | ./html_axe$i.sh $comp |
---|
| 428 | done |
---|
| 429 | for proj in GLOB SH NH ; do |
---|
| 430 | for bias in BIAS MAPS ; do |
---|
| 431 | for season in YEAR DJF JJA ; do |
---|
[3915] | 432 | echo ./multi_atlas.sh $comp $bias $season $proj $RUNS |
---|
| 433 | ./multi_atlas.sh $comp $bias $season $proj $RUNS >> out.com$$ |
---|
[3684] | 434 | done |
---|
| 435 | done |
---|
| 436 | done |
---|
[3745] | 437 | #exit |
---|
| 438 | # cd $COMP_D |
---|
[3684] | 439 | # ln -sf BIASYEAR.html $comp.html |
---|
[3745] | 440 | # ln -sf ACCUEIL.html $comp.html |
---|
[3743] | 441 | cd $local |
---|
[3737] | 442 | ./webpage_multi.sh $comp |
---|
[3745] | 443 | |
---|
| 444 | fi |
---|