Changeset 3885 for BOL/Multi_atlas
- Timestamp:
- Apr 30, 2021, 10:38:59 AM (4 years ago)
- Location:
- BOL/Multi_atlas
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Multi_atlas/Utils/atlas0.sh
r3884 r3885 45 45 elif [ $# = 0 ] ; then 46 46 sim=$RUN 47 ref= OBS47 ref=$REF 48 48 seas=$SEASON 49 49 proj=$PROJ … … 109 109 110 110 111 npass= 5111 npass=1 112 112 ipass=1 113 113 … … 118 118 echo passage $ipass >> atlas.sh.log 119 119 html=index_example_"$seas"_"$sim".html 120 htmlopt=index_ ${proj}_"$seas"_"$sim".html120 htmlopt=index_"${proj}"_"$seas"_"$sim".html 121 121 rm -f $html 122 122 … … 129 129 fi 130 130 131 echo python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas --root $INDIR 132 python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas --root $INDIR 131 #echo python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas --root $INDIR 132 #python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas --root $INDIR 133 echo python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas 134 python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas 133 135 134 if [ ! -f "$html" -o "`wc -l $html | awk ' { print $1 } '`" = "0" ] ; then 136 #if [ ! -f "$html" -o "`wc -l $html | awk ' { print $1 } '`" = "0" ] ; then 137 if [ ! -f "$htmlopt" -o "`wc -l $htmlopt | awk ' { print $1 } '`" = "0" ] ; then 135 138 echo ECHEC ATLAS : $html inexistant ou vide | tee >> atlas.sh.log 136 139 echo ECHEC ATLAS : $html inexistant ou vide 137 140 else 138 echo cp -f $html tmp$$.$passage139 cp -f $html tmp$$.$passage141 #echo cp -f $html tmp$$.$passage 142 #cp -f $html tmp$$.$passage 140 143 pwd 141 echo tmp$$.$passage142 echo LS LS143 ls -lrt | tail144 #echo tmp$$.$passage 145 #echo LS LS 146 #ls -lrt | tail 144 147 # A ADAPTER en fonction de la machine 145 sed -e "s:/modfs/ipslfs/dods/:/thredds/fileServer/IPSLFS/:g" tmp$$.$passage >| $htmlopt148 #sed -e "s:/modfs/ipslfs/dods/:/thredds/fileServer/IPSLFS/:g" tmp$$.$passage >| $htmlopt 146 149 \cp -f $htmlopt $OUT_D/ 147 PathHtml=`echo $OUT_D/$htmlopt | sed -e 's:/modfs/ipslfs/dods/:http\://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/:'` 150 sed -i -e "s:thredds\/ipsl:thredds\/fileServer\/IPSLFS:g" $OUT_D/$htmlopt 151 #PathHtml=`echo $OUT_D/$htmlopt | sed -e 's:/modfs/ipslfs/dods/:http\://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/:'` 148 152 echo NOUVEL ATLAS DISPONIBLE SUR $PathHtml | tee >> atlas.sh.log 149 153 echo NOUVEL ATLAS DISPONIBLE SUR $PathHtml 150 echo $keys_strgv >> $OUT_D/atlas_OK151 echo ${sim}+${seas}+${proj}+$vars >> $OUT_D/atlas_OK154 #echo $keys_strgv >> $OUT_D/atlas_OK 155 #echo ${sim}+${seas}+${proj}+$vars >> $OUT_D/atlas_OK 152 156 fi 153 157 (( ipass = $ipass + 1 )) -
BOL/Multi_atlas/Utils/multi.sh
r3745 r3885 30 30 mjo=0 31 31 river=0 32 32 dataref=1 33 34 ref=OBS 35 echo $ref 33 36 # ./job_multi.sh -1D 0 -get 0 -atlas 0 -pcmdi 0 -tuning 0 -lma 0 -trmm 0 34 37 runstxt=$local/runs.txt … … 57 60 -mjo) mjo=$2 ; shift ;; 58 61 -river) river=$2 ; shift ;; 62 -dataref) dataref=$2 ; shift ;; 59 63 *) comp=$1 ;; 60 64 esac … … 123 127 echo listrune= $listrune 124 128 ls -lrt $MAIN_SE/ORIG 125 listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE` ; do listsimss="$listsimss $ss" ; done 129 #listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE` ; do listsimss="$listsimss $ss" ; done 130 131 ns=0 132 listsimss="" ; 133 for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE` ; do 134 if [ $dataref = 0 ] ; then 135 if [ ${ns} = 0 ] ; then 136 ref=$ss 137 echo ref=$ref 138 fi 139 fi 140 let "ns = ${ns} + 1" 141 listsimss="$listsimss $ss" ; 142 done 143 echo ref=$ref 144 126 145 listsimse="" ; for se in `awk ' {print $1"_SE_"$2 } ' $DEF_FILE` ; do listsimse="$listsimse $se" ; done 127 146 echo listsims $listsims … … 199 218 atlas=${sim}+${seas}+${proj}+$vars 200 219 echo AAAAAAAAAAAAAAAAAAAAAAAA $atlas 201 grep $atlas $COMP_D/ATLAS/atlas_OK220 #grep $atlas $COMP_D/ATLAS/atlas_OK 202 221 echo BBBBBB 203 if [ "`grep $atlas $COMP_D/ATLAS/atlas_OK`" = "" ] ; then222 #if [ "`grep $atlas $COMP_D/ATLAS/atlas_OK`" = "" ] ; then 204 223 cd $local/atlas ; pwd ; ls -l atlas.sh 205 224 varg=`echo $vars | sed -e 's/,/+/g'` 206 225 echo Atlas $atlas a creer 207 226 if [ $qsub = 0 ] ; then 208 ./atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt 227 #./atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt 228 ./atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt 209 229 else 210 $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt atlas.sh 230 #$submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt atlas.sh 231 $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt atlas.sh 211 232 fi 212 echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg" atlas.sh >> out.com$$ 213 echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg" atlas.sh 233 #echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg" atlas.sh >> out.com$$ 234 echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg" atlas.sh >> out.com$$ 235 #echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg" atlas.sh 236 echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg" atlas.sh 214 237 (( count_atlas = $count_atlas + 1 )) 215 else216 echo Atlas $atlas existant217 fi238 #else 239 #echo Atlas $atlas existant 240 #fi 218 241 (( il = $il + 1 )) 219 242 done -
BOL/Multi_atlas/atlas/atlas_none.py
r3684 r3885 107 107 simu_pres = svsg(opts.simulation,'pres',opts.season,opts.grid) 108 108 simu = ml2pl(simu,simu_pres) 109 if (ref != 'OBS' ) : 110 reff_pres = svsg(opts.reference,'pres',opts.season,opts.grid) 111 reff = ml2pl(reff,reff_pres) 109 112 simu = zonmean(simu) 110 113 reff = zonmean(reff) … … 265 268 index += trailer() 266 269 #out="index_example.html" 267 out="index_ example_"+opts.season+"_"+opts.simulation+".html"270 out="index_"+opts.region+"_"+opts.season+"_"+opts.simulation+".html" 268 271 with open(out,"w") as filout : filout.write(index) 269 272 #
Note: See TracChangeset
for help on using the changeset viewer.