Index: BOL/Multi_atlas/Utils/atlas0.sh
===================================================================
--- BOL/Multi_atlas/Utils/atlas0.sh	(revision 3885)
+++ BOL/Multi_atlas/Utils/atlas0.sh	(revision 3915)
@@ -136,6 +136,6 @@
    #if [ ! -f "$html"  -o "`wc -l $html | awk ' { print $1 } '`" = "0" ] ; then
    if [ ! -f "$htmlopt"  -o "`wc -l $htmlopt | awk ' { print $1 } '`" = "0" ] ; then
-      echo ECHEC ATLAS : $html inexistant ou vide | tee >>  atlas.sh.log
-      echo ECHEC ATLAS : $html inexistant ou vide
+      echo ECHEC ATLAS : $htmlopt inexistant ou vide | tee >>  atlas.sh.log
+      echo ECHEC ATLAS : $htmlopt inexistant ou vide
    else
       #echo cp -f $html tmp$$.$passage
Index: BOL/Multi_atlas/Utils/multi.sh
===================================================================
--- BOL/Multi_atlas/Utils/multi.sh	(revision 3885)
+++ BOL/Multi_atlas/Utils/multi.sh	(revision 3915)
@@ -14,4 +14,5 @@
 html=1
 atlas=1
+newatlas=1
 atlas_cesmep=0
 get=0
@@ -126,6 +127,13 @@
 echo listrunss= $listrunss
 echo listrune= $listrune 
-ls -lrt $MAIN_SE/ORIG
-#listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE`    ; do listsimss="$listsimss $ss" ; done
+echo ================================================================
+echo la commande suivante
+echo ls -lrt $MAIN_SE/ORIG
+echo peut prendre beaucoup de temps lorsque
+echo l acces aux espaces du CCRT et/ou de l IDRIS thredds est lent ou si
+echo les espaces /thredds/tgcc et/ou /thredds/idris ne sont pas montes sur ciclad.
+echo On ne l utilise plus !!!
+echo ================================================================
+###ls -lrt $MAIN_SE/ORIG
 
 ns=0
@@ -150,4 +158,9 @@
 echo SIMULATIONS: $listsims
 
+RUNS=""
+RUNS=`awk ' {print $1"_"$2 } ' $DEF_FILE`
+echo $RUNS
+echo listrunss=$RUNS
+
 echo '########################################################################'
 echo  1/ Rapatriement des simulations manquantes
@@ -204,4 +217,10 @@
 
 if [ $atlas = 1 ] ; then
+if [ $newatlas = 1 ]; then
+sed -e 's/COMPAR/'${comp}'/' ${local}/atlas/make_atlas.sh > ${local}/atlas/make_atlas_${comp}.sh
+$submit -v COMP=${comp},DATAREF=${dataref} ${local}/atlas/make_atlas_${comp}.sh
+
+else
+
 for sim in $listsimss ; do
    il=1
@@ -249,5 +268,7 @@
 #   exit
 fi
-fi
+
+fi #newatlas
+fi #atlas
 
 # atlas_cesmep : cles pour activer les nouveau atlas (C-ESM-EP)
@@ -390,5 +411,6 @@
    ./make_html_libigcm.sh --comp $comp
    cd $local
-   ./html_entete.sh $comp
+   ./html_entete.sh ${comp} ${dataref}
+   ./make_index_html.sh ${comp} ${dataref}
    ./html_tuning.sh  $comp
    ./html_tuning_min.sh  $comp
@@ -414,6 +436,6 @@
    for bias in BIAS MAPS ; do
        for season in YEAR DJF JJA ; do
-        echo ./multi_atlas.sh $comp $bias $season $proj $listrunss  
-        ./multi_atlas.sh $comp $bias $season $proj $listrunss  >> out.com$$
+        echo ./multi_atlas.sh $comp $bias $season $proj $RUNS  
+        ./multi_atlas.sh $comp $bias $season $proj $RUNS  >> out.com$$
        done
    done
Index: BOL/Multi_atlas/atlas/atlas_none.py
===================================================================
--- BOL/Multi_atlas/atlas/atlas_none.py	(revision 3885)
+++ BOL/Multi_atlas/atlas/atlas_none.py	(revision 3915)
@@ -36,4 +36,5 @@
 parser.add_option("-f", "--force", help="force le recalcul de champs existants", 
                   action="store_true",default=None)
+parser.add_option("--dirpng",help="Path of the simulation directory", action="store",default=None)
 parser.add_option("-o", "--pdf", help="nom du pdf de sortie (default: atlas_<SIMU>_<SAISON>.pdf)", action="store")
 (opts, args) = parser.parse_args()
@@ -131,4 +132,15 @@
 		  mpCenterLonF=0,
 		  **pparams)
+###11052021 begin
+#    # Single figures
+    page=cpage([[simu_fig]],orientation='landscape', page_trim=True, fig_trim=True)
+    pdf_page=cpage([[simu_fig]],orientation='landscape',
+        page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation)
+#pdfargs.append(cfile(pdf_page,target='/home/fabric/users/musat/myatlas/simu_fig.pdf'))
+    #pdffile="atlas_"+opts.simulation+"_"+opts.season+".pdf"
+    #pdfargs.append(cfile(pdf_page,target=opts.simumapp))
+    pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.simulation+"/MAP/"+variable+".pdf"))
+#
+###11052021 end
     simu_avg=cvalue(space_average(simu))
     #
@@ -141,4 +153,11 @@
 		 mpCenterLonF=0,
                  **pparams)
+###11052021 begin
+    #    # Single figures ref_fig
+    page=cpage([[ref_fig]],orientation='landscape', page_trim=True, fig_trim=True)
+    pdf_page=cpage([[ref_fig]],orientation='landscape',
+        page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation)
+    pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.reference+"/MAP/"+variable+".pdf"))
+###11052021 end
     ref_avg=cvalue(space_average(reff))
     #
@@ -174,4 +193,9 @@
 		  gsnStringFontHeightF=stringFontHeight,
                   aux_options='cnLineThicknessF=2|cnLineLabelsOn=True', **p)
+    #    # Single figures diff_fig
+        page=cpage([[diff_fig]],orientation='landscape', page_trim=True, fig_trim=True)
+        pdf_page=cpage([[diff_fig]],orientation='landscape',
+                page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation)
+        pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.simulation+"/DMAP_"+opts.reference+"/"+variable+".pdf"))
     else:
         p.update({'contours':1})
@@ -229,4 +253,21 @@
 				 'gsnRightString='+opts.season+'|'+\
 				 'gsnStringFontHeightF='+str(stringFontHeight))
+    #    # Single figures
+	page=cpage([[simu_fig]],orientation='landscape', page_trim=True, fig_trim=True)
+	pdf_page=cpage([[simu_fig]],orientation='landscape', 
+		page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation)
+        pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.simulation+"/MAP/"+variable+".pdf"))
+    #    # Single figures ref_fig
+	page=cpage([[ref_fig]],orientation='landscape', page_trim=True, fig_trim=True)
+	pdf_page=cpage([[ref_fig]],orientation='landscape', 
+		page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation)
+        pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.reference+"/MAP/"+variable+".pdf"))
+    #    # Single figures diff_fig
+	page=cpage([[diff_fig]],orientation='landscape', page_trim=True, fig_trim=True)
+	pdf_page=cpage([[diff_fig]],orientation='landscape', 
+		page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation)
+        pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.simulation+"/DMAP_"+opts.reference+"/"+variable+".pdf"))
+# Creation du Pdf multi-pages
+	comm=subprocess.Popen(pdfargs, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     #    # Composite figure
     if is3d(variable):
@@ -238,5 +279,4 @@
     	pdf_page=cpage([[simu_fig,ref_fig],[diff_fig,zmean_fig]],orientation='landscape', 
                    page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation)
-    pdfargs.append(cfile(pdf_page))
     #
     thumbnail_size = 200
Index: BOL/Multi_atlas/install_multi_atlas.sh
===================================================================
--- BOL/Multi_atlas/install_multi_atlas.sh	(revision 3885)
+++ BOL/Multi_atlas/install_multi_atlas.sh	(revision 3915)
@@ -160,5 +160,5 @@
 chmod +x job_multi.sh
 
-#### script pour creer les atlas 
+#### scripts pour creer les atlas 
 rm -f atlas.sh
 cat entete.sh >| atlas.sh
@@ -166,4 +166,11 @@
 chmod +x atlas.sh
 \mv atlas.sh atlas/.
+###
+rm -f make_atlas.sh
+cat entete.sh >| make_atlas.sh
+cat Utils/make_atlas0.sh >> make_atlas.sh
+chmod +x make_atlas.sh
+\mv make_atlas.sh atlas/.
+
 cp Utils/lmdz_SE0.py tmp0.py
 sed -e s:ROOT_SIM_DIR:$ROOT_SIM_DIR:g tmp0.py > tmp.py
Index: BOL/Multi_atlas/multi_atlas.sh
===================================================================
--- BOL/Multi_atlas/multi_atlas.sh	(revision 3885)
+++ BOL/Multi_atlas/multi_atlas.sh	(revision 3915)
@@ -44,4 +44,6 @@
 # Le nom semble avoir changé ... sref=$COMP_D/ATLAS/index_${proj}_${season}_${ref}.html
 sref=$COMP_D/ATLAS/index_${proj}_${season}_${ref}.html
+
+sed -i -e "s:thredds\/ipsl:thredds\/fileServer\/IPSLFS:g" ${sref}
 #############################################################################
 
