Changeset 3915 for BOL/Multi_atlas
- Timestamp:
- May 26, 2021, 4:56:17 PM (3 years ago)
- Location:
- BOL/Multi_atlas
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Multi_atlas/Utils/atlas0.sh
r3885 r3915 136 136 #if [ ! -f "$html" -o "`wc -l $html | awk ' { print $1 } '`" = "0" ] ; then 137 137 if [ ! -f "$htmlopt" -o "`wc -l $htmlopt | awk ' { print $1 } '`" = "0" ] ; then 138 echo ECHEC ATLAS : $html inexistant ou vide | tee >> atlas.sh.log139 echo ECHEC ATLAS : $html inexistant ou vide138 echo ECHEC ATLAS : $htmlopt inexistant ou vide | tee >> atlas.sh.log 139 echo ECHEC ATLAS : $htmlopt inexistant ou vide 140 140 else 141 141 #echo cp -f $html tmp$$.$passage -
BOL/Multi_atlas/Utils/multi.sh
r3885 r3915 14 14 html=1 15 15 atlas=1 16 newatlas=1 16 17 atlas_cesmep=0 17 18 get=0 … … 126 127 echo listrunss= $listrunss 127 128 echo listrune= $listrune 128 ls -lrt $MAIN_SE/ORIG 129 #listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE` ; do listsimss="$listsimss $ss" ; done 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 130 138 131 139 ns=0 … … 150 158 echo SIMULATIONS: $listsims 151 159 160 RUNS="" 161 RUNS=`awk ' {print $1"_"$2 } ' $DEF_FILE` 162 echo $RUNS 163 echo listrunss=$RUNS 164 152 165 echo '########################################################################' 153 166 echo 1/ Rapatriement des simulations manquantes … … 204 217 205 218 if [ $atlas = 1 ] ; then 219 if [ $newatlas = 1 ]; then 220 sed -e 's/COMPAR/'${comp}'/' ${local}/atlas/make_atlas.sh > ${local}/atlas/make_atlas_${comp}.sh 221 $submit -v COMP=${comp},DATAREF=${dataref} ${local}/atlas/make_atlas_${comp}.sh 222 223 else 224 206 225 for sim in $listsimss ; do 207 226 il=1 … … 249 268 # exit 250 269 fi 251 fi 270 271 fi #newatlas 272 fi #atlas 252 273 253 274 # atlas_cesmep : cles pour activer les nouveau atlas (C-ESM-EP) … … 390 411 ./make_html_libigcm.sh --comp $comp 391 412 cd $local 392 ./html_entete.sh $comp 413 ./html_entete.sh ${comp} ${dataref} 414 ./make_index_html.sh ${comp} ${dataref} 393 415 ./html_tuning.sh $comp 394 416 ./html_tuning_min.sh $comp … … 414 436 for bias in BIAS MAPS ; do 415 437 for season in YEAR DJF JJA ; do 416 echo ./multi_atlas.sh $comp $bias $season $proj $ listrunss417 ./multi_atlas.sh $comp $bias $season $proj $ listrunss>> out.com$$438 echo ./multi_atlas.sh $comp $bias $season $proj $RUNS 439 ./multi_atlas.sh $comp $bias $season $proj $RUNS >> out.com$$ 418 440 done 419 441 done -
BOL/Multi_atlas/atlas/atlas_none.py
r3885 r3915 36 36 parser.add_option("-f", "--force", help="force le recalcul de champs existants", 37 37 action="store_true",default=None) 38 parser.add_option("--dirpng",help="Path of the simulation directory", action="store",default=None) 38 39 parser.add_option("-o", "--pdf", help="nom du pdf de sortie (default: atlas_<SIMU>_<SAISON>.pdf)", action="store") 39 40 (opts, args) = parser.parse_args() … … 131 132 mpCenterLonF=0, 132 133 **pparams) 134 ###11052021 begin 135 # # Single figures 136 page=cpage([[simu_fig]],orientation='landscape', page_trim=True, fig_trim=True) 137 pdf_page=cpage([[simu_fig]],orientation='landscape', 138 page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation) 139 #pdfargs.append(cfile(pdf_page,target='/home/fabric/users/musat/myatlas/simu_fig.pdf')) 140 #pdffile="atlas_"+opts.simulation+"_"+opts.season+".pdf" 141 #pdfargs.append(cfile(pdf_page,target=opts.simumapp)) 142 pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.simulation+"/MAP/"+variable+".pdf")) 143 # 144 ###11052021 end 133 145 simu_avg=cvalue(space_average(simu)) 134 146 # … … 141 153 mpCenterLonF=0, 142 154 **pparams) 155 ###11052021 begin 156 # # Single figures ref_fig 157 page=cpage([[ref_fig]],orientation='landscape', page_trim=True, fig_trim=True) 158 pdf_page=cpage([[ref_fig]],orientation='landscape', 159 page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation) 160 pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.reference+"/MAP/"+variable+".pdf")) 161 ###11052021 end 143 162 ref_avg=cvalue(space_average(reff)) 144 163 # … … 174 193 gsnStringFontHeightF=stringFontHeight, 175 194 aux_options='cnLineThicknessF=2|cnLineLabelsOn=True', **p) 195 # # Single figures diff_fig 196 page=cpage([[diff_fig]],orientation='landscape', page_trim=True, fig_trim=True) 197 pdf_page=cpage([[diff_fig]],orientation='landscape', 198 page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation) 199 pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.simulation+"/DMAP_"+opts.reference+"/"+variable+".pdf")) 176 200 else: 177 201 p.update({'contours':1}) … … 229 253 'gsnRightString='+opts.season+'|'+\ 230 254 'gsnStringFontHeightF='+str(stringFontHeight)) 255 # # Single figures 256 page=cpage([[simu_fig]],orientation='landscape', page_trim=True, fig_trim=True) 257 pdf_page=cpage([[simu_fig]],orientation='landscape', 258 page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation) 259 pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.simulation+"/MAP/"+variable+".pdf")) 260 # # Single figures ref_fig 261 page=cpage([[ref_fig]],orientation='landscape', page_trim=True, fig_trim=True) 262 pdf_page=cpage([[ref_fig]],orientation='landscape', 263 page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation) 264 pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.reference+"/MAP/"+variable+".pdf")) 265 # # Single figures diff_fig 266 page=cpage([[diff_fig]],orientation='landscape', page_trim=True, fig_trim=True) 267 pdf_page=cpage([[diff_fig]],orientation='landscape', 268 page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation) 269 pdfargs.append(cfile(pdf_page,target=opts.dirpng+"/"+opts.season+"/"+opts.simulation+"/DMAP_"+opts.reference+"/"+variable+".pdf")) 270 # Creation du Pdf multi-pages 271 comm=subprocess.Popen(pdfargs, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 231 272 # # Composite figure 232 273 if is3d(variable): … … 238 279 pdf_page=cpage([[simu_fig,ref_fig],[diff_fig,zmean_fig]],orientation='landscape', 239 280 page_trim=True, fig_trim=True, format='pdf', title=variable+" "+opts.simulation) 240 pdfargs.append(cfile(pdf_page))241 281 # 242 282 thumbnail_size = 200 -
BOL/Multi_atlas/install_multi_atlas.sh
r3882 r3915 160 160 chmod +x job_multi.sh 161 161 162 #### script pour creer les atlas162 #### scripts pour creer les atlas 163 163 rm -f atlas.sh 164 164 cat entete.sh >| atlas.sh … … 166 166 chmod +x atlas.sh 167 167 \mv atlas.sh atlas/. 168 ### 169 rm -f make_atlas.sh 170 cat entete.sh >| make_atlas.sh 171 cat Utils/make_atlas0.sh >> make_atlas.sh 172 chmod +x make_atlas.sh 173 \mv make_atlas.sh atlas/. 174 168 175 cp Utils/lmdz_SE0.py tmp0.py 169 176 sed -e s:ROOT_SIM_DIR:$ROOT_SIM_DIR:g tmp0.py > tmp.py -
BOL/Multi_atlas/multi_atlas.sh
r3881 r3915 44 44 # Le nom semble avoir changé ... sref=$COMP_D/ATLAS/index_${proj}_${season}_${ref}.html 45 45 sref=$COMP_D/ATLAS/index_${proj}_${season}_${ref}.html 46 47 sed -i -e "s:thredds\/ipsl:thredds\/fileServer\/IPSLFS:g" ${sref} 46 48 ############################################################################# 47 49
Note: See TracChangeset
for help on using the changeset viewer.