Changeset 4330 for BOL/Multi_atlas/Utils
- Timestamp:
- Nov 9, 2022, 3:27:12 PM (2 years ago)
- Location:
- BOL/Multi_atlas/Utils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Multi_atlas/Utils/atlas0.sh
r4317 r4330 3 3 local=`pwd -P` 4 4 5 ../env_ciclad.sh5 source ../env.sh 6 6 7 7 module list 8 which python 8 python=`which python` 9 echo PYTHON IS $python 10 9 11 ulimit -s unlimited 10 12 ATLAS_DIR=${DODSDIR}/${login}/lmdz/atlas/Atlas$$ ; mkdir -p $ATLAS_DIR … … 12 14 dirpng=${DODSDIR}/${login}/lmdz/VLR 13 15 16 if [ 1 == 0 ]; then 14 17 export PYTHONPATH=$PYTHONPATH:/home/fabric/users/denvil/climaf 15 18 export PATH=$PATH:/home/fabric/users/denvil/climaf/bin 16 17 \rm -rf $DODSDIR/$login/climafCache$$ 18 mkdir -p $DODSDIR/$login/climafCache$$ 19 export CLIMAF_CACHE=$DODSDIR/$login/climafCache$$ 20 echo CLIMAF_CACHE $DODSDIR/$login/climafCache$$ 19 fi 20 21 #myCC=$DODSDIR/$login/IMclimafCache 22 #if [ 1 == 0 ]; then 23 myCC=/scratchu/${login}/climafCache041122run 24 #\rm -rf ${myCC} 25 mkdir -p ${myCC} 26 export CLIMAF_CACHE=${myCC} 27 echo CLIMAF_CACHE ${CLIMAF_CACHE} 28 mkdir -p ${CLIMAF_CACHE}/remote_data 29 export CLIMAF_REMOTE_CACHE=${CLIMAF_CACHE}/remote_data 30 #fi 31 #exit 32 #\rm -rf $DODSDIR/$login/climafCache$$ 33 #mkdir -p $DODSDIR/$login/climafCache$$ 34 #export CLIMAF_CACHE=$DODSDIR/$login/climafCache$$ 35 #echo CLIMAF_CACHE $DODSDIR/$login/climafCache$$ 21 36 ########################################################################### 22 37 vars="" … … 131 146 mkdir -p ${dirpng}/${seas}/${sim}/DMAP_${ref}/${proj} 132 147 148 refok=${dirpng}/${seas}/${ref}/MAP/${proj}/${var}.pdf 133 149 mapok=${dirpng}/${seas}/${sim}/MAP/${proj}/${var}.pdf 134 150 dmapok=${dirpng}/${seas}/${sim}/DMAP_${ref}/${proj}/${var}.pdf … … 140 156 # ~/LMDZ/check/make_check_var3D_SE.sh $dirpng $seas $sim $ref $var > out_check_var3D_SE.log 141 157 158 if [ ! -f ${refok} ] || [ ! -f ${mapok} ] || [ ! -f ${dmapok} ]; then 159 160 echo Fabrication des cartes $var pour $ref $sim $sim-$ref 161 142 162 if [ "$var" == "ua" ] || [ "$var" == "va" ] || [ "$var" == "ta" ] || [ "$var" == "hur" ] || [ "$var" == "hus" ]; then 143 echo python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 144 python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 163 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 164 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 165 if [ ! -f ${mapok} ]; then 166 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 167 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 168 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 169 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 170 elif [ ! -f ${refok} ]; then 171 echo $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng} 172 $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng} 173 echo $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng} 174 $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng} 175 elif [ ! -f ${dmapok} ]; then 176 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 177 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 178 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 179 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 180 fi 145 181 else 146 echo python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax} 147 python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax} 182 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax} 183 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax} 184 if [ ! -f ${mapok} ]; then 185 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 186 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 187 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 188 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 189 elif [ ! -f ${refok} ]; then 190 echo $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng} 191 $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng} 192 echo $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng} 193 $python ${local}/$pyatlas -v $var -s OBS -t $ref -p $seas -r $proj --dirpng ${dirpng} 194 elif [ ! -f ${dmapok} ]; then 195 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 196 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 197 echo $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 198 $python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 199 fi 148 200 fi 201 # 202 else 203 echo Les images $refok 204 echo $mapok et 205 echo $dmapok 206 echo existent deja 207 fi 149 208 # 150 209 echo Creation graphes png … … 167 226 \rm -f $OUT_D/$keys_strg.ENCOURS 168 227 169 \rm -rf $DODSDIR/$login/climafCache$$228 #IM041122 \rm -rf $DODSDIR/$login/climafCache$$ -
BOL/Multi_atlas/Utils/multi.sh
r4317 r4330 1 1 #set -vx 2 2 3 ./env_ciclad.sh3 source ./env.sh 4 4 5 5 local=`pwd -P` … … 88 88 echo runstxt= $runstxt 89 89 90 echo qsub is $qsub 91 #exit 92 90 93 echo DODSDIR : $DODSDIR 91 94 MAIN_SE=$DODSDIR/$login/lmdz/SE … … 312 315 echo Atlas $atlas a creer 313 316 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 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 315 323 else 316 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 … … 357 365 years=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $2 } '` 358 366 run=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $1 } '` 367 echo ./make_MOY.sh "$years" YEAR "$run" GLOB 359 368 ./make_MOY.sh "$years" YEAR "$run" GLOB >> ${LOGD}/MOY$$ 2>&1 360 369 ./make_MOY.sh "$years" YEAR "$run" ZON >> ${LOGD}/MOY$$ 2>&1 … … 375 384 ./mk_clouds_NOcalipso.sh MAM ZON >> ${LOGD}/calipso$$ 2>&1 376 385 ./mk_clouds_NOcalipso.sh SON ZON >> ${LOGD}/calipso$$ 2>&1 377 378 386 echo multi_ZONE.sh, log in ${LOGD}/Z$$ 379 387 ./multi_ZONE.sh YEAR $comp ZON -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1 … … 402 410 cd $local/METRICS 403 411 #./metrics.sh -runsfile $runstxt $comp 412 echo ./metrics.sh $comp > ${LOGD}/METRICS$$ 2>&1 404 413 ./metrics.sh $comp > ${LOGD}/METRICS$$ 2>&1 405 414 fi … … 533 542 cd ${local} 534 543 echo ./make_html_libigcm.sh --comp $comp --runstxt $runstxt 535 ./make_html_libigcm.sh --comp $comp --runstxt $runstxt > ${LOGD}/html$$ 2>&1544 bash ./make_html_libigcm.sh --comp $comp --runstxt $runstxt > ${LOGD}/html$$ 2>&1 536 545 echo log in ${LOGD}/html$$ 537 ./html_entete.sh $comp ${dataref} >> ${LOGD}/html$$ 2>&1546 bash ./html_entete.sh $comp ${dataref} >> ${LOGD}/html$$ 2>&1 538 547 cd ${local}/html 539 ./make_index_html.sh ${comp} ${dataref} >> ${LOGD}/html$$ 2>&1540 cd $local 541 ./html_tuning.sh $comp >> ${LOGD}/html$$ 2>&1542 ./html_tuning_min.sh $comp >> ${LOGD}/html$$ 2>&1543 ./html_accueil.sh $comp >> ${LOGD}/html$$ 2>&1544 ./html_1D.sh $comp >> ${LOGD}/html$$ 2>&1545 ./html_lma.sh $comp >> ${LOGD}/html_LMA$$ 2>&1546 ./html_pcmdi.sh $comp >> ${LOGD}/html$$ 2>&1547 ./html_all.sh >| $MULTIDIR/all.html548 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 548 557 549 558 # html pour les métriques
Note: See TracChangeset
for help on using the changeset viewer.