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

Last change on this file since 4366 was 4340, checked in by musat, 3 years ago

Inclut environnement spirit et dernieres corrections (1/3)
IonelaMusat?

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