source: BOL/Multi_atlas/Utils/multi.sh @ 4322

Last change on this file since 4322 was 4317, checked in by musat, 3 years ago

Ajout environnement ciclad pour compte perso
IonelaMusat?

  • Property svn:executable set to *
File size: 20.7 KB
Line 
1#set -vx
2
3./env_ciclad.sh
4
5local=`pwd -P`
6cd $local
7echo REPERTOIRE LOCAL :  $local
8
9echo '############################################################'
10echo  0/ gestion des options
11echo '############################################################'
12pcmdi_metrics=0
13tuning_metrics=1
14und=0
15zon=1
16html=1
17atlas=1
18#newatlas=0
19atlas_cesmep=0
20get=0
21cmor=1
22regdyn=0
23lma=0
24trmm=0
25axe2=0
26axe4=0
27esmval2=0
28reflcld_histo=0
29vertcld_calipso=0
30stations_day=0
31stations_mth=0
32qsub=1
33mjo=0
34river=0
35dataref=1
36
37ref=OBS
38echo $ref
39
40lonmin=-180
41lonmax=180
42latmin=-90
43latmax=90
44pmin=1
45
46# ./job_multi.sh -1D 0 -get 0 -atlas 0 -pcmdi 0 -tuning 0 -lma 0 -trmm 0
47runstxt=$local/runs.txt
48
49while test -n "${1}"; do
50   case $1 in
51      -1D) und=$2 ; shift ;;
52      -get) get=$2 ; shift ;;
53      -cmor) cmor=$2 ; shift ;;
54      -zon) zon=$2 ; shift ;;
55      -atlas) atlas=$2 ; shift ;;
56      -atlas_cesmep) atlas_cesmep=$2 ; shift ;;
57      -pcmdi) pcmdi_metrics=$2 ; shift ;;
58      -tuning) tuning_metrics=$2 ; shift ;;
59      -runstxt) runstxt=$2 ; shift ;;
60      -lma) lma=$2 ; shift ;;
61      -trmm) trmm=$2 ; shift ;;
62      -axe4) axe4=$2 ; shift ;;
63      -axe2) axe2=$2 ; shift ;;
64      -regdyn) regdyn=$2 ; shift ;;
65      -esmval2) esmval2=$2 ; shift ;; 
66      -stations_day) stations_day=$2 ; shift ;; 
67      -stations_mth) stations_mth=$2 ; shift ;; 
68      -reflcld_histo) refld_histo=$2 ; shift ;;
69      -vertcld_calipso) vertcld_calipso=$2 ; shift ;;
70      -mjo) mjo=$2 ; shift ;; 
71      -river) river=$2 ; shift ;;
72      -dataref) dataref=$2 ; shift ;;
73      -lonmin) lonmin=$2 ; shift ;;
74      -lonmax) lonmax=$2 ; shift ;;
75      -latmin) latmin=$2 ; shift ;;
76      -latmax) latmax=$2 ; shift ;;
77      -pmin) pmin=$2 ; shift ;;
78      -qsub) qsub=$2 ; shift ;;
79      *) comp=$1 ;;
80   esac
81   shift
82done
83
84echo multi=$comp region: lonmin=$lonmin lonmax=$lonmax latmin=$latmin latmax=$latmax
85echo multi=$comp pmin: pmin=$pmin
86rm -f out.com$$
87runstxt=$local/runs.txt
88echo runstxt= $runstxt
89
90echo DODSDIR : $DODSDIR
91MAIN_SE=$DODSDIR/$login/lmdz/SE
92TS_DA=$DODSDIR/$login/lmdz/TS_DA
93TS_MO=$DODSDIR/$login/lmdz/TS_MO
94MULTIDIR=$DODSDIR/$login/lmdz/MultiSimu
95
96if [ ! -d $MULTIDIR ] ; then mkdir -p $MULTIDIR ; fi
97if [ ! -d $MAIN_SE ] ; then mkdir -p $MAIN_SE ; fi
98if [ ! -d $MAIN_MO ] ; then mkdir -p $MAIN_MO ; fi
99if [ ! -d $MAIN_DA ] ; then mkdir -p $MAIN_DA ; fi
100
101COMP_D=$MULTIDIR/$comp
102DEF_FILE=$COMP_D/def.txt ; if [ ! -f $DEF_FILE ] ; then echo renseigner $DEF_FILE ; exit ; fi
103LOGD=$COMP_D/log ; mkdir -p $LOGD
104outfile=$LOGD/out$$ ; if [ -f ${outfile} ] ; then \rm -f $outfile ; fi
105echo Ecriture des logs dans $outfile
106
107###
108#~/LMDZ/check/make_warning.sh $COMP_D
109### nom2
110listsims=""  ; for s  in `awk ' {print $1} ' $DEF_FILE | uniq`          ; do listsims="$listsims $s"    ; done
111#echo listsims $listsims
112
113listsims=""  ; for s  in `awk ' {print $1} ' $DEF_FILE | uniq`          ; do listsims="$listsims $s"    ; done
114echo listsims $listsims
115### nom1, simdir
116for s in $listsims ; do
117### simdir
118simdir=`grep -w "^$s "  $runstxt | awk ' { print $2 } '`
119### nom1
120ss=`basename $simdir `
121for year in `grep -w "^$s" $DEF_FILE | awk ' { print $2 } '` ; do
122#file=${MAIN_SE}/ORIG/${s}_SE_${year}_1M_histmth.nc
123file=${MAIN_SE}/ORIG/${ss}_SE_${year}_1M_histmth.nc
124
125echo $file $year
126
127if [ ! -f ${file} ]; then
128 if [ -f ${simdir}/ATM/Analyse/SE/${ss}_SE_${year}_1M_histmth.nc ]; then
129  ln -s ${simdir}/ATM/Analyse/SE/${ss}_SE_${year}_1M_histmth.nc $file
130 elif [ "${ss}" == "UQLMDZ6A1000" ]; then
131  echo NO need to ln -s; the *1M_histmth.nc does not exist anymore
132 else
133  ln -s ${simdir}/ATM/Output/MO/${ss}_${year}0101_${year}1230_1M_histmth.nc $file
134 fi
135fi
136
137\rm ${MAIN_SE}/ORIG/UQLMDZ6AW1000_SE_1979_1988_1M_histmth.nc
138done
139done
140#${local}/../check/mk_check-avail-data.sh ${comp}
141
142echo ### On supprime dans def.txt les lignes vides ########
143sed -i "/^[ \t]*$/d" $DEF_FILE
144
145echo ### On teste d abord la coherence des noms des simulations dans def.txt et $runstxt ################
146echo MULTI-ATLAS "$comp"
147for s in $listsims ; do
148srun=`grep -w "^$s "  $runstxt | awk ' { print $1 } '`
149echo 's='"$s" '    srun='  "$srun"
150if [ "$s" != "$srun" ] ; then
151   #echo Meme nom de la simulation dans def.txt et $runstxt 's=' "$s" '    srun='  "$srun"
152#else
153   echo ATTENTION : la simulation "$s" de votre def.txt n est pas repertoriee dans $runstxt >${LOGD}/error_${comp}
154   echo             ou le meme nom est attribue a plusieures simulations >> ${LOGD}/error_${comp}
155   echo Il faut la rajouter dans $runstxt >> ${LOGD}/error_${comp}
156   echo avec le chemin vers les SE et TS dans ciclad : /thredds/ipsl/fabric/IGCM_OUT >> ${LOGD}/error_${comp}
157   echo             ou renomer votre simulation >> ${LOGD}/error_${comp}
158   more ${LOGD}/error_${comp}
159exit
160fi
161echo Checking if $s simulation is referenced many times in runs.txt
162#nrun=`./how_many_times_run.sh $s`
163#nrun=`./how_many_times_run.sh $srun`
164nrun=1
165
166if [ "$nrun" != "1" ]; then
167 echo Simulation $s est repertoriee ${nrun} fois dans $runstxt >> ${LOGD}/error_${comp}
168 echo STOPping here >> ${LOGD}/error_${comp}
169 more ${LOGD}/error_${comp}
170 exit
171fi
172done
173#exit
174listruns=""
175listrunss=""
176listrunse=""
177if [ ! -d $MAIN_SE/ORIG ] ; then mkdir -p $MAIN_SE/ORIG ; fi
178for s in $listsims ; do 
179simdir=`grep -w "^$s "  $runstxt | awk ' { print $2 } '`
180echo $simdir
181( cd $MAIN_SE/ORIG ; ln -sf $simdir/ATM/Analyse/SE/*mth*nc . ) > /dev/null 2>&1
182echo $simdir
183ss=`basename $simdir `
184listruns="$listruns $ss"
185for year in `grep -w "^$s" $DEF_FILE | awk ' { print $2 } '` ; do
186listrunss="$listrunss ${ss}_$year"
187listrune="$listrune ${ss}_SE_$year"
188done
189done
190#echo listruns = $listruns
191#echo listrunss= $listrunss
192#echo listrune= $listrune
193#ls -lrt $MAIN_SE/ORIG # Eviter de laisser des ls qui rendent la sortire illisible FH
194#listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE`    ; do listsimss="$listsimss $ss" ; done
195
196ns=0
197listsimss="" ; 
198for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE`    ; do 
199if [ $dataref = 0 ] ; then
200   if [ ${ns} = 0 ] ; then
201      ref=$ss
202      echo ref=$ref
203   fi 
204fi
205let "ns = ${ns} + 1"
206listsimss="$listsimss $ss" ; 
207done
208echo ref=$ref
209
210listsimse="" ; for se in `awk ' {print $1"_SE_"$2 } ' $DEF_FILE` ; do listsimse="$listsimse $se" ; done
211echo listsims $listsims
212echo listsimss $listsimss
213echo listsimse $listsimse
214
215echo SIMULATIONS: $listsims
216
217RUNS=""
218RUNS=`awk ' {print $1"_"$2 } ' $DEF_FILE`
219echo listrunss=$RUNS
220
221echo '########################################################################'
222echo  1/ Rapatriement des simulations manquantes
223echo '########################################################################'
224#### AI avril 2020 ################ Avant l acces directe aux simulations sur le dods du CCRT
225# Adresses web ne sont plus a jours
226# A commenter les adresses web CCRT
227# A mettre a jours les adress web IDRIS
228# Rajouter d'autres machines avec rsynk, wget ou ssh ...
229
230if [ $get = 1 ] ; then
231
232cd $MAIN_SE
233for sim in $listsimss ; do echo ./getun.sh ${sim} >> $outfile 2>&1 ; ./getun.sh ${sim} ; done
234cd $TS_DA
235for sim in $listsimss ; do echo ./getun.sh ${sim} >> $outfile 2>&1 ; ./getun.sh ${sim} ; done
236cd $TS_MO
237for sim in $listsimss ; do echo ./getun.sh ${sim} >> $outfile 2>&1 ; ./getun.sh ${sim} ; done
238
239fi
240
241echo '########################################################################'
242echo  1.1/ Check des fichiers input et des variables demandees pour l atlas avec
243echo       des exit si un des fichiers ou des variables ne sont pas accessibles
244echo '########################################################################'
245#IM TBC ${local}/../check/make_check_fin.sh $comp ${LOGD}/check_finput$$ 2>&1
246
247if [ $cmor = 1 ] ; then
248 cp cmor.sh $MAIN_SE/.
249 cp season.sh $MAIN_SE/.
250 cd $MAIN_SE
251 chmod +x cmor.sh
252 chmod +x season.sh
253#########################################################################
254# 1.2 "Cmorisation des fichiers mensuels : traduction au format CMIP
255#########################################################################
256# Deux lignes suivantes modif FH 2016/11/09
257# Files are taken from /thredds/ipsl/fabric/lmdz/SE/ORIG and
258# results are in /thredds/ipsl/fabric/lmdz/SE/CMOR
259#########################################################################
260
261echo cmor.sh : output dans ${LOGD}/cmor$$
262./cmor.sh -runsfile $runstxt $comp > ${LOGD}/cmor$$ 2>&1
263if [ $? != 0 ] ; then exit ; fi # Probleme de histmth non present. On arrete tout
264
265#########################################################################
266# 1.3 Interpolate fields on a common horizontal grid (VLR) and
267#########################################################################
268#     average in time "YEAR", "JJA" ...
269#     Results are put on
270#     /thredds/ipsl/fabric/lmdz/VLR/YEAR/[SIMU_NAME]_[period]/NC
271#     If wanting to rerun season.sh for observations :
272#     ./season.sh -s OBS
273#########################################################################
274
275cd $MAIN_SE
276echo season.sh : output dans ${LOGD}/season$$
277./season.sh -comp $comp > ${LOGD}/season$$ 2>&1
278cd $local
279
280fi
281
282echo '########################################################################'
283echo  2/ Lancement des atlas manquant
284echo '########################################################################'
285natlas=`wc -l $COMP_D/atlas-def | awk ' { print $1 } '`
286count_atlas=0
287
288if [ $atlas = 1 ] ; then
289#if [ $newatlas = 1 ]; then
290#sed -e 's/COMPAR/'${comp}'/' ${local}/atlas/make_atlas.sh > ${local}/atlas/make_atlas_${comp}.sh
291#$submit -v COMP=${comp},DATAREF=${dataref} ${local}/atlas/make_atlas_${comp}.sh
292
293#./make_timecount.sh ${comp}
294
295#else
296
297for sim in $listsimss ; do
298   il=1
299   if [ ! -f $COMP_D/atlas-def ] ; then
300      echo Definir les atlas a construire dans $COMP_D/atlas-def
301      echo Example :
302      cat $COMP_D/../CMIP5to6/atlas-def
303   fi
304   while [ $il -le $natlas ] ; do
305      line=`sed -n -e ${il}p $COMP_D/atlas-def`
306      seas=`echo $line | awk ' { print $1 } '`
307      proj=`echo $line | awk ' { print $2 } '`
308      vars=`echo $line | awk ' { print $3 } '`
309      atlas=${sim}+${seas}+${proj}+$vars
310      cd ${local}/atlas
311      varg=`echo $vars | sed -e 's/,/+/g'`
312      echo Atlas $atlas a creer
313      if [ $qsub = 0 ] ; then
314         ${local}/atlas/atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin >> $outfile
315      else
316         echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin atlas.sh >> ${LOGD}/ATLAS$$ 2>&1
317         $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin atlas.sh
318         if [ "$ref" != "OBS" ]; then
319            echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin atlas.sh >> ${LOGD}/ATLAS$$ 2>&1
320            $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt,lonmin=$lonmin,lonmax=$lonmax,latmin=$latmin,latmax=$latmax,pmin=$pmin atlas.sh
321         fi
322      fi
323      (( count_atlas = $count_atlas + 1 ))
324      (( il = $il + 1 ))
325   done
326done
327if [ $count_atlas != 0 ] ; then
328    echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
329    echo Les atlas manquant ont ete lances. Attendre leur
330    echo creation pour relancer job_multi.sh
331    echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
332#   exit
333fi
334
335#fi #newatlas
336fi #atlas
337
338# atlas_cesmep : cles pour activer les nouveau atlas (C-ESM-EP)
339# AI avril 2020 : Passage a la version v2 de C-ESM-EP
340# FH Juin 2022 : Passage a la version v3 de C-ESM-EP (changement de prodigfs en thredds)
341if [ $atlas_cesmep = 1 ] ; then
342   cd ~/LMDZ/C-ESM-EP
343   ./AtlasLMDZ.sh -runsfile $runstxt $comp >> ${LOGD}/CESMEP$$ 2>&1
344fi # atlas_cesmep
345
346echo '########################################################################'
347echo  3/ Calcul des moyennes zonales nco
348echo '#####################################################################'
349
350
351#trace moy.zonale OBS + multi-simulations
352if [ $zon = 1 ] ; then
353   cd $local
354   mkdir -p $COMP_D/ZON
355   for sim in $listsimse OBS ; do
356      echo make_MOY for simulation $sim, log in ${LOGD}/MOY$$
357      years=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $2 } '`
358      run=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $1 } '`
359      ./make_MOY.sh "$years" YEAR "$run" GLOB      >> ${LOGD}/MOY$$ 2>&1
360      ./make_MOY.sh "$years" YEAR "$run" ZON       >> ${LOGD}/MOY$$ 2>&1
361      ./make_MOY.sh "$years" JJA "$run"  ZON       >> ${LOGD}/MOY$$ 2>&1
362      ./make_MOY.sh "$years" DJF "$run"  ZON       >> ${LOGD}/MOY$$ 2>&1
363      ./make_MOY.sh "$years" JJAS "$run" AMMACROSS >> ${LOGD}/MOY$$ 2>&1
364      ./make_MOY.sh "$years" MAM "$run"  ZON       >> ${LOGD}/MOY$$ 2>&1
365      ./make_MOY.sh "$years" SON "$run"  ZON       >> ${LOGD}/MOY$$ 2>&1
366   done
367   cd $local
368### ajout nuages LMDZ dans la compa et doit faire des liens symbol. sur
369#### les OBS calipso toujurs pour le moment
370   echo mk_clouds_NOcalipso.sh, log in  ${LOGD}/calipso$$
371   ./mk_clouds_NOcalipso.sh YEAR ZON       >> ${LOGD}/calipso$$ 2>&1
372   ./mk_clouds_NOcalipso.sh DJF ZON        >> ${LOGD}/calipso$$ 2>&1
373   ./mk_clouds_NOcalipso.sh JJA ZON        >> ${LOGD}/calipso$$ 2>&1
374   ./mk_clouds_NOcalipso.sh JJAS AMMACROSS >> ${LOGD}/calipso$$ 2>&1
375   ./mk_clouds_NOcalipso.sh MAM ZON        >> ${LOGD}/calipso$$ 2>&1
376   ./mk_clouds_NOcalipso.sh SON ZON        >> ${LOGD}/calipso$$ 2>&1
377
378   echo multi_ZONE.sh, log in ${LOGD}/Z$$
379   ./multi_ZONE.sh YEAR $comp ZON -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1
380   ./multi_ZONE.sh JJA $comp ZON -runsfile $runstxt  >> ${LOGD}/Z$$ 2>&1
381   ./multi_ZONE.sh DJF $comp ZON -runsfile $runstxt  >> ${LOGD}/Z$$ 2>&1
382   ./multi_ZONE.sh JJAS $comp AMMACROSS -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1
383   ./multi_ZONE.sh MAM $comp ZON -runsfile $runstxt  >> ${LOGD}/Z$$ 2>&1
384   ./multi_ZONE.sh SON $comp ZON -runsfile $runstxt  >> ${LOGD}/Z$$ 2>&1
385fi
386
387if [ ! -f $COMP_D/1D/1D.html -a $und = 1  ] ; then
388echo '#####################################################################'
389echo 4/ Lancement du 1D
390echo '#####################################################################'
391    cd $COMP_D
392    echo log in ${LOGD}/1D$$
393    ~/LMDZ/1D/serie1d.sh $comp  > ${LOGD}/1D$$ 2>&1
394    cd $local
395fi
396
397if [ $tuning_metrics = 1 -a ! -d $COMP_D/METRICS ] ; then
398echo '#####################################################################'
399echo 5.1/ Metriques LMD : $tuning_metrics
400echo '#####################################################################'
401   echo metrics.sh, log in ${LOGD}/METRICS$$
402   cd $local/METRICS
403   #./metrics.sh -runsfile $runstxt $comp
404   ./metrics.sh $comp > ${LOGD}/METRICS$$ 2>&1
405fi
406
407if [ $pcmdi_metrics = 1 ] ; then
408echo '#####################################################################'
409echo 5.2/ Metriques PCMDI : $pcmdi_metrics
410echo '#####################################################################'
411cd $local
412   ./make_pcmdi.sh $comp
413fi
414
415if [ $regdyn = 1 ]; then
416echo '#####################################################################'
417echo 6/ Sorting by dynamical regimes : $regdyn
418echo '#####################################################################'
419   cd ~/users/musat/regdyn/clean_regdyn
420   ./mk_all_regdyn.sh $comp 0 > ${LOGD}/REGDYN$$ 2>&1
421   cd $local
422fi
423
424if [ $esmval2 = 1 ]; then
425echo '#####################################################################'
426echo 7/ ESMvalTool : $esmval2
427echo '#####################################################################'
428   cd $local
429   ./cvdp4atlas.sh $comp
430   ./perfm4atlas.sh $comp
431fi   
432
433if [ $mjo = 1 ]; then
434echo '#####################################################################'
435echo 8.1/ Rainfall variability / MJO diagnostics : $mjo
436echo '#####################################################################'
437   cd ~/users/idelkadi/MJO
438   ./make_diagnosMJO.sh $comp
439fi
440
441if [ $river = 1 ]; then 
442   cd ~/users/idelkadi/AXE1/River
443   ./make_diagnoRiver.sh $comp
444fi 
445
446if [ $lma = 1 ]; then
447echo '#####################################################################'
448echo 8.2/ Rainfall variability / LMA analysis of the MJO : $lma
449echo '#####################################################################'
450   #IM150722 cd $local
451   #IM120722 ./make_lma.sh $comp
452   cd ~/users/musat/d_AXE2_LMA/
453   ./make_LMA.sh $comp >  ${LOGD}/LMA$$ 2>&1
454   cd ${local}
455fi
456
457if [ $axe2 = 1 ]; then
458echo '#####################################################################'
459echo 8.3/ Rainfall variability / metrics
460echo '#####################################################################'
461   cd $local
462   bash  make_axe2.sh -runstxt $runstxt $comp    >  ${LOGD}/axe2_$$ 2>&1
463   echo  make_axe2.sh -runstxt $runstxt $comp '-->' ${LOGD}/axe2_$$
464fi
465
466if [ $trmm = 1 ]; then
467echo '#####################################################################'
468echo 8.4/ Rainfall variability / Marine Bonazzola : $trmm
469echo '#####################################################################'
470   cd ~/users/musat/atlas/d_AXE2
471   ./Axe2_Marine.sh $comp
472   cd $local
473fi
474
475if [ $river = 1 ]; then 
476echo '#####################################################################'
477echo 9/ River discharges
478echo '#####################################################################'
479   cd ~/users/idelkadi/AXE1/River
480   ./make_diagnoRiver.sh $comp
481fi 
482
483if [ $axe4 = 1 ]; then
484echo '#####################################################################'
485echo 10/ Poles
486echo '#####################################################################'
487  cd $local
488   ./make_axe4.sh $comp
489fi
490
491if [ "$reflcld_histo" = "1" ] ; then
492echo '#####################################################################'
493echo 11/ reflcld_histo : $reflcld_histo
494echo '#####################################################################'
495   cd ~/users/idelkadi/AXE3/CldReflCldFrac
496   ./make_scatReflCld.sh $comp
497   cd $local
498fi
499
500if [ $vertcld_calipso = 1 ] ; then
501echo '#####################################################################'
502echo 12/ Calipso : $vertcld_calipso
503echo '#####################################################################'
504   cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/DJF
505   ./make_VerticalMzCldCalipso.sh $comp
506   cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/JJA
507   ./make_VerticalMzCldCalipso.sh $comp
508   cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/MAM
509   ./make_VerticalMzCldCalipso.sh $comp
510   cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/SON
511   ./make_VerticalMzCldCalipso.sh $comp
512   cd ~/users/idelkadi/AXE3/Calipso/Stratos
513   ./make_StratosCalipso.sh $comp
514fi
515
516
517if [ $stations_day = 1 ] ; then
518echo '#####################################################################'
519echo 13/ Stations
520echo '#####################################################################'
521   ~/users/Binta/bibi.sh $comp
522   ~/users/cheruy/bibi.sh $comp
523fi
524
525if [ $stations_mth = 1 ] ; then
526   ~/users/traore/SE_buoy.sh $comp
527fi
528
529if [ $html = 1 ] ; then
530echo '#####################################################################'
531echo 14/ generation des pages html
532echo '#####################################################################'
533   cd ${local}
534   echo ./make_html_libigcm.sh --comp $comp --runstxt $runstxt
535   ./make_html_libigcm.sh --comp $comp --runstxt $runstxt > ${LOGD}/html$$ 2>&1
536   echo log in ${LOGD}/html$$ 
537   ./html_entete.sh $comp ${dataref} >> ${LOGD}/html$$ 2>&1
538   cd ${local}/html
539   ./make_index_html.sh ${comp} ${dataref} >> ${LOGD}/html$$ 2>&1
540   cd $local
541   ./html_tuning.sh  $comp           >> ${LOGD}/html$$ 2>&1
542   ./html_tuning_min.sh  $comp       >> ${LOGD}/html$$ 2>&1
543   ./html_accueil.sh  $comp          >> ${LOGD}/html$$ 2>&1
544   ./html_1D.sh  $comp               >> ${LOGD}/html$$ 2>&1
545   ./html_lma.sh $comp               >> ${LOGD}/html_LMA$$ 2>&1
546   ./html_pcmdi.sh $comp             >> ${LOGD}/html$$ 2>&1
547   ./html_all.sh >| $MULTIDIR/all.html
548
549   # html pour les métriques
550#   cat $COMP_D/entete.html doc_pcmdi.html >| $COMP_D/PCMDI.html
551#   ref=`echo $listsimss | awk ' { print $1 } '`
552#   echo "<h1> Metrics with respect to $ref </h1>" >>  $COMP_D/PCMDI.html
553#   cat $COMP_D/pcmdi_metrics.html >> $COMP_D/PCMDI.html
554#   echo "<h1> Metrics with respect to AR4.00 </h1>" >>  $COMP_D/PCMDI.html
555#   cat $COMP_D/metrics-AR4-as-ref.html >> $COMP_D/PCMDI.html
556#   echo "<h1> Metrics with respect to CMIP5/AMIP multi model </h1>" >>  $COMP_D/PCMDI.html
557#   cat $COMP_D/metrics-CMIP5-AMIP-as-ref.html >> $COMP_D/PCMDI.html
558   for i in 1 2 3 4 5 6 7 ; do
559        ./html_axe$i.sh  $comp >> ${LOGD}/html$$ 2>&1
560   done
561
562   echo Multi atlas, log in ${LOGD}/multiatlas$$ 
563#  for proj in GLOB SH NH ; do
564#  for proj in ATLTN GLOB SH NH ; do
565   for proj in GLOB SH NH ; do
566   for bias in BIAS MAPS ; do
567       for season in YEAR DJF JJA MAM SON ; do
568        ./multi_atlas.sh $comp $bias $season $proj $RUNS  >> ${LOGD}/multiatlas$$ 2>&1
569       done
570   done
571   done
572#exit
573#   cd $COMP_D
574#   ln -sf BIASYEAR.html  $comp.html
575#   ln -sf ACCUEIL.html  $comp.html
576cd $local
577./webpage_multi.sh $comp
578fi
579
580echo UN NOVEL MULTI ATLAS EST DISPONIBLE sur $COMP_D/ACCUEIL.html
Note: See TracBrowser for help on using the repository browser.