Changeset 4308 for BOL/Multi_atlas
- Timestamp:
- Oct 26, 2022, 1:09:34 PM (2 years ago)
- Location:
- BOL/Multi_atlas/Utils
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Multi_atlas/Utils/atlas0.sh
r3915 r4308 1 # Definitions en fonction de la machine 2 # CICLAD 3 hostname=`hostname` 4 if [ ${hostname:0:5} = cicla ] ; then 5 ######################################################################################################## 1 ########################################################################### 6 2 # Environnement 7 module purge8 module load netcdf4/4.3.3.1-ifort cdo/1.6.8 nco/4.5.2 ncl/6.3.09 ulimit -s unlimited10 export PYTHONPATH=:/opt/canopy-1.3.0/Canopy_64bit/User/bin/python:/home/igcmg/prodiguer-client:/home/fabric/users/denvil/climaf:/home/fabric/users/denvil/climaf11 export PATH=$PATH:/home/fabric/users/denvil/climaf/bin12 STORAGE=$DODSDIR/$login/lmdz/STORE13 if [ ! -d $DODSDIR/$login/climafCache ] ; then mkdir -p $DODSDIR/$login/climafCache ; fi14 export CLIMAF_CACHE=$DODSDIR/$login/climafCache15 echo CLIMAF_CACHE $DODSDIR/$login/climafCache16 MULTIDIR=$DODSDIR/$login/lmdz/MultiSimu17 DIRATLAS=$DODSDIR/$login/lmdz/atlas18 ########################################################################################################19 ATLAS_DIR=$DODSDIR/$login/lmdz/atlas/Atlas$$20 if [ ! -d $DODSDIR/$login/lmdz/atlas/Atlas$$ ] ; then mkdir -p $DODSDIR/$login/lmdz/atlas/Atlas$$ ; fi21 fi22 3 local=`pwd -P` 23 4 24 date 5 module list 6 which python 7 ulimit -s unlimited 8 ATLAS_DIR=${DODSDIR}/${login}/lmdz/atlas/Atlas$$ ; mkdir -p $ATLAS_DIR 9 STORAGE=${DODSDIR}/${login}/lmdz/STORE 10 dirpng=${DODSDIR}/${login}/lmdz/VLR 25 11 12 export PYTHONPATH=$PYTHONPATH:/home/fabric/users/denvil/climaf 13 export PATH=$PATH:/home/fabric/users/denvil/climaf/bin 14 15 \rm -rf $DODSDIR/$login/climafCache$$ 16 mkdir -p $DODSDIR/$login/climafCache$$ 17 export CLIMAF_CACHE=$DODSDIR/$login/climafCache$$ 18 echo CLIMAF_CACHE $DODSDIR/$login/climafCache$$ 19 ########################################################################### 26 20 vars="" 27 21 vars="sst" 28 #runstxt= $local/../runs.txt22 #runstxt=/home/fabric/LMDZ/multi/runs.txt 29 23 30 24 if [ $# = 1 ] ; then … … 41 35 if [ "$key" = "OUTDIR" ] ; then OUT_D=$val ; fi 42 36 if [ "$key" = "RUNSTXT" ] ; then runstxt=$val ; fi 43 if [ "$key" = "VARS" ] ; then vars="`echo $val | sed -e 's/+/,/g'`" ; fi 37 if [ "$key" = "VARS" ] ; then vars="`echo $val | sed -e 's/+/ /g'`" ; fi 38 if [ "$key" = "lonmin" ] ; then lonmin=$val ; fi 39 if [ "$key" = "lonmax" ] ; then lonmax=$val ; fi 40 if [ "$key" = "latmin" ] ; then latmin=$val ; fi 41 if [ "$key" = "latmax" ] ; then latmax=$val ; fi 42 if [ "$key" = "pmin" ] ; then pmin=$val ; fi 44 43 done 45 44 elif [ $# = 0 ] ; then … … 50 49 OUT_D=$OUTDIR 51 50 runstxt=$RUNSTXT 52 vars=`echo $VARS | sed -e 's/+/,/g'` 51 vars=`echo $VARS | sed -e 's/+/ /g'` 52 lonmin=$lonmin 53 lonmax=$lonmax 54 latmin=$latmin 55 latmax=$latmax 56 pmin=$pmin 57 echo lonmin=$lonmin lonmax=$lonmax 58 echo latmin=$latmin latmax=$latmax 59 echo pmin=$pmin 53 60 else 54 61 echo USE 55 62 echo Job mode : 56 echo $submit-v RUN=NPv5.3_1982_1989,SEASON=YEAR,PROJ=GLOB,OUTDIR=$MULTIDIR/V5/ATLAS,VARS=pr+tas atlas.sh63 echo qsub -v RUN=NPv5.3_1982_1989,SEASON=YEAR,PROJ=GLOB,OUTDIR=$MULTIDIR/V5/ATLAS,VARS=pr+tas atlas.sh 57 64 echo interactif : 58 65 echo ./atlas.sh RUN=NPv5.3_1982_1989,SEASON=YEAR,PROJ=GLOB,OUTDIR=$MULTIDIR/V5/ATLAS,VARS=pr+tas … … 61 68 62 69 if [ "$vars" = "" ] ; then 63 vars= pr,tas,hurs,hfls,hfss,albt,albtcs,albs,rldscs,rlds,rlus,rsdscs,rsds,rsuscs,rsus,rsutcs,rsut,rlut,rlutcs,psl,prw,sst,pme,tasmax,tasmin70 vars="pr tas hurs hfls hfss albt albtcs albs rldscs rlds rlus rsdscs rsds rsuscs rsus rsutcs rsut rlut rlutcs psl prw sst pme tasmax tasmin" 64 71 fi 65 72 66 #,ua850,va850,ta850,ua500,va500,ta500,ua200,va200,ta200 73 if [ "$sim" != "OBS" ]; then 67 74 echo sim $sim 68 75 srun=`echo $sim | sed -e 's/_[0-9][0-9][0-9][0-9]_[0-9][0-9][0-9][0-9]//'` 69 76 echo srun $srun 70 simdir=`grep -w "^$srun " $runstxt | awk ' { print $2 } '`77 simdir=`grep -w "^$srun " $runstxt | awk ' { print $2 } '` 71 78 run=`basename $simdir ` 72 79 years=`echo $sim | sed -e 's/'$srun'//' | sed -e 's/_//'` 73 80 sim=${run}_${years} 81 74 82 echo $run $years $sim $ref 75 83 echo ENTREES : $run, $years, $seas, $vars, $ref … … 79 87 echo sim $sim 80 88 echo simdir $simdir 89 fi 81 90 82 91 keys_strgv=$sim$seas$proj$vars$ref … … 98 107 echo sim $sim seas $seas > atlas.sh.log 99 108 100 ###########################################################################101 # Boucle pour construire l'atlas en plusieurs passages102 echo IL FAUT FAIRE L ATLAS EN PLUSIEURS PASSAGE SINON CA PLANTE ...103 ###########################################################################104 105 109 case "$proj" in 106 110 "SH"|"NH") pyatlas="atlas_SH.py --projection $proj" ;; 107 111 "GLOB") Var3D=,ua,va,ta,hus,hur ; pyatlas=atlas_none.py ;; 112 *) Var3D=,ua,va,ta,hus,hur ; pyatlas=atlas_none.py ;; 108 113 esac 109 114 110 111 npass=1112 ipass=1113 114 while [ $ipass -le $npass ] ; do115 116 echo Nettoyage des fichiers corrompus du cache117 $local/clean_cache.sh $DIRATLAS118 echo passage $ipass >> atlas.sh.log119 115 html=index_example_"$seas"_"$sim".html 120 116 htmlopt=index_"${proj}"_"$seas"_"$sim".html 121 rm -f $html 117 echo rm -f $htmlopt 118 # 119 for var in $vars; do 120 datevar=`date` 121 echo Creation repertoires *MAP* et check variables 3D 122 mkdir -p ${dirpng}/${seas}/${sim}/MAP 123 mkdir -p ${dirpng}/${seas}/${sim}/MAP/${proj} 124 # 125 mkdir -p ${dirpng}/${seas}/${ref}/MAP 126 mkdir -p ${dirpng}/${seas}/${ref}/MAP/${proj} 127 # 128 mkdir -p ${dirpng}/${seas}/${sim}/DMAP_${ref} 129 mkdir -p ${dirpng}/${seas}/${sim}/DMAP_${ref}/${proj} 122 130 123 INDIR=$simdir/ATM/Analyse/SE 124 file=${INDIR}/`basename $simdir`_SE_$years_1M_histmth.nc 125 if [ ! -f ${file} ]; then 126 echo PB fichier $file inexistant 127 INDIR=$DODSDIR/$login/lmdz/SE/ORIG 128 file=$INDIR/`basename $simdir`_SE_$years_1M_histmth.nc 129 fi 131 mapok=${dirpng}/${seas}/${sim}/MAP/${proj}/${var}.pdf 132 dmapok=${dirpng}/${seas}/${sim}/DMAP_${ref}/${proj}/${var}.pdf 133 # 134 datevar=`date` 135 # 136 # for var3D check if pres exist 137 # echo ~/LMDZ/check/make_check_var3D_SE.sh $dirpng $seas $sim $ref $var 138 # ~/LMDZ/check/make_check_var3D_SE.sh $dirpng $seas $sim $ref $var > out_check_var3D_SE.log 130 139 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 140 if [ "$var" == "ua" ] || [ "$var" == "va" ] || [ "$var" == "ta" ] || [ "$var" == "hur" ] || [ "$var" == "hus" ]; then 141 echo python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 142 python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} 143 else 144 echo python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax} 145 python ${local}/$pyatlas -v $var -s $sim -t $ref -p $seas -r $proj --dirpng ${dirpng} --lonmin ${lonmin} --lonmax ${lonmax} --latmin ${latmin} --latmax ${latmax} 146 fi 147 # 148 echo Creation graphes png 149 ~/LMDZ/atlas/make_pdf2png.sh $dirpng $seas $proj $sim $ref $var > out_pdf2png.log 150 # 151 done 135 152 136 #if [ ! -f "$html" -o "`wc -l $html | awk ' { print $1 } '`" = "0" ] ; then137 153 if [ ! -f "$htmlopt" -o "`wc -l $htmlopt | awk ' { print $1 } '`" = "0" ] ; then 138 154 echo ECHEC ATLAS : $htmlopt inexistant ou vide | tee >> atlas.sh.log 139 155 echo ECHEC ATLAS : $htmlopt inexistant ou vide 140 156 else 141 #echo cp -f $html tmp$$.$passage142 #cp -f $html tmp$$.$passage143 157 pwd 144 #echo tmp$$.$passage145 #echo LS LS146 #ls -lrt | tail147 # A ADAPTER en fonction de la machine148 #sed -e "s:/modfs/ipslfs/dods/:/thredds/fileServer/IPSLFS/:g" tmp$$.$passage >| $htmlopt149 158 \cp -f $htmlopt $OUT_D/ 150 sed -i -e "s:thredds\/ ipsl:thredds\/fileServer\/IPSLFS:g" $OUT_D/$htmlopt151 #PathHtml=`echo $OUT_D/$htmlopt | sed -e 's:/modfs/ipslfs/dods/:http\://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/:'` 159 sed -i -e "s:thredds\/IPSLFS:thredds\/fileServer\/ipsl_thredds:g" $OUT_D/$htmlopt 160 152 161 echo NOUVEL ATLAS DISPONIBLE SUR $PathHtml | tee >> atlas.sh.log 153 162 echo NOUVEL ATLAS DISPONIBLE SUR $PathHtml 154 #echo $keys_strgv >> $OUT_D/atlas_OK155 #echo ${sim}+${seas}+${proj}+$vars >> $OUT_D/atlas_OK156 163 fi 157 (( ipass = $ipass + 1 ))158 159 done160 164 161 165 \rm -f $OUT_D/$keys_strg.ENCOURS 166 167 \rm -rf $DODSDIR/$login/climafCache$$ -
BOL/Multi_atlas/Utils/lmdz_SE0.py
r3743 r4308 32 32 # Saisons gérées et leur traduction CDO 33 33 ######################################################################################### 34 seasons={ 'YEAR':"", 'DJF' : "-timavg -selmon,1,2,12", 'JJA' : "-timavg -selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9" }35 34 #seasons={ 'YEAR':"", 'DJF' : " selmon,1,2,12", 'JJA' : " selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9" } 36 35 #seasons={ 'YEAR':"", 'DJF' : "-timavg -selmon,1,2,12", 'JJA' : "-timavg -selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9" } 36 seasons={ 'YEAR':"", 'DJF' : "-timavg -selmon,1,2,12", 'JJA' : "-timavg -selmon,6,7,8" , 'JJAS' : "-timavg -selmon,6,7,8,9", 'MAM' : "-timavg -selmon,3,4,5", 'SON' : "-timavg -selmon,9,10,11" } 37 37 38 38 … … 101 101 derive('OBS','dtr','minus','tasmax','tasmin') 102 102 103 calias('OBS', 'hflsevap', 'hfls', scale=1./2.5e6) 103 104 104 105 ######################################################################################### … … 164 165 calias('SE','hur','rhum', scale=100.) 165 166 calias('SE','clt','cldt', scale=100.) 166 calias('SE','cltcalipso', scale=100.)167 calias('SE','clhcalipso', scale=100.)168 calias('SE','clmcalipso', scale=100.)169 calias('SE','cllcalipso', scale=100.)167 calias('SE','cltcalipso','cltcalipso', scale=100.) 168 calias('SE','clhcalipso','clhcalipso', scale=100.) 169 calias('SE','clmcalipso','clmcalipso', scale=100.) 170 calias('SE','cllcalipso','cllcalipso', scale=100.) 170 171 171 172 # Variables dérivées -
BOL/Multi_atlas/Utils/multi.sh
r3917 r4308 14 14 html=1 15 15 atlas=1 16 newatlas=1 16 #newatlas=0 17 17 atlas_cesmep=0 18 18 get=0 … … 24 24 axe4=0 25 25 esmval2=0 26 refl d_histo=026 reflcld_histo=0 27 27 vertcld_calipso=0 28 28 stations_day=0 29 29 stations_mth=0 30 qsub= 030 qsub=1 31 31 mjo=0 32 32 river=0 … … 35 35 ref=OBS 36 36 echo $ref 37 38 lonmin=-180 39 lonmax=180 40 latmin=-90 41 latmax=90 42 pmin=1 43 37 44 # ./job_multi.sh -1D 0 -get 0 -atlas 0 -pcmdi 0 -tuning 0 -lma 0 -trmm 0 38 45 runstxt=$local/runs.txt … … 57 64 -stations_day) stations_day=$2 ; shift ;; 58 65 -stations_mth) stations_mth=$2 ; shift ;; 59 -refl d_histo) refld_histo=$2 ; shift ;;66 -reflcld_histo) refld_histo=$2 ; shift ;; 60 67 -vertcld_calipso) vertcld_calipso=$2 ; shift ;; 61 68 -mjo) mjo=$2 ; shift ;; 62 69 -river) river=$2 ; shift ;; 63 70 -dataref) dataref=$2 ; shift ;; 71 -lonmin) lonmin=$2 ; shift ;; 72 -lonmax) lonmax=$2 ; shift ;; 73 -latmin) latmin=$2 ; shift ;; 74 -latmax) latmax=$2 ; shift ;; 75 -pmin) pmin=$2 ; shift ;; 64 76 *) comp=$1 ;; 65 77 esac … … 67 79 done 68 80 81 echo multi=$comp region: lonmin=$lonmin lonmax=$lonmax latmin=$latmin latmax=$latmax 82 echo multi=$comp pmin: pmin=$pmin 69 83 rm -f out.com$$ 70 84 runstxt=$local/runs.txt … … 84 98 COMP_D=$MULTIDIR/$comp 85 99 DEF_FILE=$COMP_D/def.txt ; if [ ! -f $DEF_FILE ] ; then echo renseigner $DEF_FILE ; exit ; fi 100 LOGD=$COMP_D/log ; mkdir -p $LOGD 101 outfile=$LOGD/out$$ ; if [ -f ${outfile} ] ; then \rm -f $outfile ; fi 102 echo Ecriture des logs dans $outfile 103 104 ### 105 #~/LMDZ/check/make_warning.sh $COMP_D 106 ### nom2 107 listsims="" ; for s in `awk ' {print $1} ' $DEF_FILE | uniq` ; do listsims="$listsims $s" ; done 108 #echo listsims $listsims 86 109 87 110 listsims="" ; for s in `awk ' {print $1} ' $DEF_FILE | uniq` ; do listsims="$listsims $s" ; done 88 111 echo listsims $listsims 112 ### nom1, simdir 113 for s in $listsims ; do 114 ### simdir 115 simdir=`grep -w "^$s " $runstxt | awk ' { print $2 } '` 116 ### nom1 117 ss=`basename $simdir ` 118 for year in `grep -w "^$s" $DEF_FILE | awk ' { print $2 } '` ; do 119 #file=${MAIN_SE}/ORIG/${s}_SE_${year}_1M_histmth.nc 120 file=${MAIN_SE}/ORIG/${ss}_SE_${year}_1M_histmth.nc 121 122 echo $file $year 123 124 if [ ! -f ${file} ]; then 125 if [ -f ${simdir}/ATM/Analyse/SE/${ss}_SE_${year}_1M_histmth.nc ]; then 126 ln -s ${simdir}/ATM/Analyse/SE/${ss}_SE_${year}_1M_histmth.nc $file 127 elif [ "${ss}" == "UQLMDZ6A1000" ]; then 128 echo NO need to ln -s; the *1M_histmth.nc does not exist anymore 129 else 130 ln -s ${simdir}/ATM/Output/MO/${ss}_${year}0101_${year}1230_1M_histmth.nc $file 131 fi 132 fi 133 134 \rm ${MAIN_SE}/ORIG/UQLMDZ6AW1000_SE_1979_1988_1M_histmth.nc 135 done 136 done 137 #${local}/../check/mk_check-avail-data.sh ${comp} 89 138 90 139 echo ### On supprime dans def.txt les lignes vides ######## … … 96 145 srun=`grep -w "^$s " $runstxt | awk ' { print $1 } '` 97 146 echo 's='"$s" ' srun=' "$srun" 98 if [ "$s" = "$srun" ] ; then 99 echo Meme nom de la simulation dans def.txt et $runstxt 's=' "$s" ' srun=' "$srun" 100 else 101 echo ATTENTION : la simulation "$s" de votre def.txt n est pas repertoriee dans $runstxt 102 echo ou le meme nom est attribue a plusieures simulations 103 echo Il faut la rajouter dans $runstxt 104 echo avec le chemin vers les SE et TS dans ciclad : /modfs/$login/IGCM_OUT 105 echo ou renomer votre simulation 147 if [ "$s" != "$srun" ] ; then 148 #echo Meme nom de la simulation dans def.txt et $runstxt 's=' "$s" ' srun=' "$srun" 149 #else 150 echo ATTENTION : la simulation "$s" de votre def.txt n est pas repertoriee dans $runstxt >${LOGD}/error_${comp} 151 echo ou le meme nom est attribue a plusieures simulations >> ${LOGD}/error_${comp} 152 echo Il faut la rajouter dans $runstxt >> ${LOGD}/error_${comp} 153 echo avec le chemin vers les SE et TS dans ciclad : /thredds/ipsl/fabric/IGCM_OUT >> ${LOGD}/error_${comp} 154 echo ou renomer votre simulation >> ${LOGD}/error_${comp} 155 more ${LOGD}/error_${comp} 106 156 exit 157 fi 158 echo Checking if $s simulation is referenced many times in runs.txt 159 #nrun=`./how_many_times_run.sh $s` 160 #nrun=`./how_many_times_run.sh $srun` 161 nrun=1 162 163 if [ "$nrun" != "1" ]; then 164 echo Simulation $s est repertoriee ${nrun} fois dans $runstxt >> ${LOGD}/error_${comp} 165 echo STOPping here >> ${LOGD}/error_${comp} 166 more ${LOGD}/error_${comp} 167 exit 107 168 fi 108 169 done … … 124 185 done 125 186 done 126 echo listruns = $listruns 127 echo listrunss= $listrunss 128 echo listrune= $listrune 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 187 #echo listruns = $listruns 188 #echo listrunss= $listrunss 189 #echo listrune= $listrune 190 #ls -lrt $MAIN_SE/ORIG # Eviter de laisser des ls qui rendent la sortire illisible FH 191 #listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE` ; do listsimss="$listsimss $ss" ; done 138 192 139 193 ns=0 … … 172 226 173 227 if [ $get = 1 ] ; then 174 cd $MAIN_SE 175 for sim in $listsimss ; do echo ./getun.sh ${sim} >> $local/out.com$$ ; ./getun.sh ${sim} ; done 176 cd $TS_DA ; pwd 177 for sim in $listsimss ; do echo ./getun.sh ${sim} >> $local/out.com$$ ; ./getun.sh ${sim} ; done 178 cd $TS_MO ; pwd 179 for sim in $listsimss ; do echo ./getun.sh ${sim} >> $local/out.com$$ ; ./getun.sh ${sim} ; done 180 fi 228 229 cd $MAIN_SE 230 for sim in $listsimss ; do echo ./getun.sh ${sim} >> $outfile 2>&1 ; ./getun.sh ${sim} ; done 231 cd $TS_DA 232 for sim in $listsimss ; do echo ./getun.sh ${sim} >> $outfile 2>&1 ; ./getun.sh ${sim} ; done 233 cd $TS_MO 234 for sim in $listsimss ; do echo ./getun.sh ${sim} >> $outfile 2>&1 ; ./getun.sh ${sim} ; done 235 236 fi 237 238 echo '########################################################################' 239 echo 1.1/ Check des fichiers input et des variables demandees pour l atlas avec 240 echo des exit si un des fichiers ou des variables ne sont pas accessibles 241 echo '########################################################################' 242 #IM TBC ${local}/../check/make_check_fin.sh $comp ${LOGD}/check_finput$$ 2>&1 181 243 182 244 if [ $cmor = 1 ] ; then … … 190 252 ######################################################################### 191 253 # Deux lignes suivantes modif FH 2016/11/09 192 # Files are taken from / modfs/ipslfs/dods/fabric/lmdz/SE/ORIG and193 # results are in / modfs/ipslfs/dods/fabric/lmdz/SE/CMOR254 # Files are taken from /thredds/ipsl/fabric/lmdz/SE/ORIG and 255 # results are in /thredds/ipsl/fabric/lmdz/SE/CMOR 194 256 ######################################################################### 195 ./cmor.sh -runsfile $runstxt $comp 257 258 echo cmor.sh : output dans ${LOGD}/cmor$$ 259 ./cmor.sh -runsfile $runstxt $comp > ${LOGD}/cmor$$ 2>&1 196 260 if [ $? != 0 ] ; then exit ; fi # Probleme de histmth non present. On arrete tout 197 261 … … 201 265 # average in time "YEAR", "JJA" ... 202 266 # Results are put on 203 # / modfs/ipslfs/dods/fabric/lmdz/VLR/YEAR/[SIMU_NAME]_[period]/NC267 # /thredds/ipsl/fabric/lmdz/VLR/YEAR/[SIMU_NAME]_[period]/NC 204 268 # If wanting to rerun season.sh for observations : 205 269 # ./season.sh -s OBS 206 270 ######################################################################### 207 ./season.sh -comp $comp 208 cd $local 271 272 cd $MAIN_SE 273 echo season.sh : output dans ${LOGD}/season$$ 274 ./season.sh -comp $comp > ${LOGD}/season$$ 2>&1 275 cd $local 276 209 277 fi 210 278 … … 216 284 217 285 if [ $atlas = 1 ] ; then 218 if [ $newatlas = 1 ]; then219 sed -e 's/COMPAR/'${comp}'/' ${local}/atlas/make_atlas.sh > ${local}/atlas/make_atlas_${comp}.sh220 $submit -v COMP=${comp},DATAREF=${dataref} ${local}/atlas/make_atlas_${comp}.sh221 222 ./make_timecount.sh ${comp}223 224 else286 #if [ $newatlas = 1 ]; then 287 #sed -e 's/COMPAR/'${comp}'/' ${local}/atlas/make_atlas.sh > ${local}/atlas/make_atlas_${comp}.sh 288 #$submit -v COMP=${comp},DATAREF=${dataref} ${local}/atlas/make_atlas_${comp}.sh 289 290 #./make_timecount.sh ${comp} 291 292 #else 225 293 226 294 for sim in $listsimss ; do … … 237 305 vars=`echo $line | awk ' { print $3 } '` 238 306 atlas=${sim}+${seas}+${proj}+$vars 239 echo AAAAAAAAAAAAAAAAAAAAAAAA $atlas240 #grep $atlas $COMP_D/ATLAS/atlas_OK241 echo BBBBBB242 #if [ "`grep $atlas $COMP_D/ATLAS/atlas_OK`" = ""] ; then243 cd $local/atlas ; pwd ; ls -l atlas.sh244 varg=`echo $vars | sed -e 's/,/+/g'`245 echo Atlas $atlas a creer246 if [ $qsub = 0 ] ; then247 ./atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt248 else249 $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF= $ref,VARS="$varg",RUNSTXT=$runstxtatlas.sh307 cd ${local}/atlas 308 varg=`echo $vars | sed -e 's/,/+/g'` 309 echo Atlas $atlas a creer 310 if [ $qsub = 0 ] ; then 311 ${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 312 else 313 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 314 $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 315 if [ "$ref" != "OBS" ]; then 316 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 317 $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 250 318 fi 251 echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg" atlas.sh >> out.com$$ 252 echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg" atlas.sh 253 (( count_atlas = $count_atlas + 1 )) 319 fi 320 (( count_atlas = $count_atlas + 1 )) 254 321 (( il = $il + 1 )) 255 322 done … … 263 330 fi 264 331 265 fi #newatlas332 #fi #newatlas 266 333 fi #atlas 267 334 268 335 # atlas_cesmep : cles pour activer les nouveau atlas (C-ESM-EP) 336 # AI avril 2020 : Passage a la version v2 de C-ESM-EP 337 # FH Juin 2022 : Passage a la version v3 de C-ESM-EP (changement de prodigfs en thredds) 269 338 if [ $atlas_cesmep = 1 ] ; then 270 339 cd ~/LMDZ/C-ESM-EP 271 ./AtlasLMDZ.sh -runsfile $runstxt $comp 340 ./AtlasLMDZ.sh -runsfile $runstxt $comp >> ${LOGD}/CESMEP$$ 2>&1 272 341 fi # atlas_cesmep 273 342 274 343 echo '########################################################################' 275 344 echo 3/ Calcul des moyennes zonales nco 276 echo '##################################################################### ###'345 echo '#####################################################################' 277 346 278 347 … … 282 351 mkdir -p $COMP_D/ZON 283 352 for sim in $listsimse OBS ; do 353 echo make_MOY for simulation $sim, log in ${LOGD}/MOY$$ 284 354 years=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $2 } '` 285 355 run=`echo $sim | sed -e 's/_SE_/ /' | awk ' { print $1 } '` 286 ./make_MOY.sh "$years" YEAR "$run" GLOB 287 ./make_MOY.sh "$years" YEAR "$run" ZON 288 ./make_MOY.sh "$years" JJA "$run" ZON 289 ./make_MOY.sh "$years" DJF "$run" ZON 290 ./make_MOY.sh "$years" JJAS "$run" AMMACROSS 356 ./make_MOY.sh "$years" YEAR "$run" GLOB >> ${LOGD}/MOY$$ 2>&1 357 ./make_MOY.sh "$years" YEAR "$run" ZON >> ${LOGD}/MOY$$ 2>&1 358 ./make_MOY.sh "$years" JJA "$run" ZON >> ${LOGD}/MOY$$ 2>&1 359 ./make_MOY.sh "$years" DJF "$run" ZON >> ${LOGD}/MOY$$ 2>&1 360 ./make_MOY.sh "$years" JJAS "$run" AMMACROSS >> ${LOGD}/MOY$$ 2>&1 361 ./make_MOY.sh "$years" MAM "$run" ZON >> ${LOGD}/MOY$$ 2>&1 362 ./make_MOY.sh "$years" SON "$run" ZON >> ${LOGD}/MOY$$ 2>&1 291 363 done 292 364 cd $local 293 365 ### ajout nuages LMDZ dans la compa et doit faire des liens symbol. sur 294 366 #### les OBS calipso toujurs pour le moment 295 ./mk_clouds_NOcalipso.sh YEAR ZON 296 ./mk_clouds_NOcalipso.sh DJF ZON 297 ./mk_clouds_NOcalipso.sh JJA ZON 298 ./mk_clouds_NOcalipso.sh JJAS AMMACROSS 299 # 300 pwd 301 ./multi_ZONE.sh YEAR $comp ZON -runsfile $runstxt 302 ./multi_ZONE.sh JJA $comp ZON -runsfile $runstxt 303 ./multi_ZONE.sh DJF $comp ZON -runsfile $runstxt 304 ./multi_ZONE.sh JJAS $comp AMMACROSS -runsfile $runstxt 305 306 fi 307 308 echo '########################################################################' 309 echo 4/ Lancement du 1D si necessaire 310 echo '########################################################################' 367 echo mk_clouds_NOcalipso.sh, log in ${LOGD}/calipso$$ 368 ./mk_clouds_NOcalipso.sh YEAR ZON >> ${LOGD}/calipso$$ 2>&1 369 ./mk_clouds_NOcalipso.sh DJF ZON >> ${LOGD}/calipso$$ 2>&1 370 ./mk_clouds_NOcalipso.sh JJA ZON >> ${LOGD}/calipso$$ 2>&1 371 ./mk_clouds_NOcalipso.sh JJAS AMMACROSS >> ${LOGD}/calipso$$ 2>&1 372 ./mk_clouds_NOcalipso.sh MAM ZON >> ${LOGD}/calipso$$ 2>&1 373 ./mk_clouds_NOcalipso.sh SON ZON >> ${LOGD}/calipso$$ 2>&1 374 375 echo multi_ZONE.sh, log in ${LOGD}/Z$$ 376 ./multi_ZONE.sh YEAR $comp ZON -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1 377 ./multi_ZONE.sh JJA $comp ZON -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1 378 ./multi_ZONE.sh DJF $comp ZON -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1 379 ./multi_ZONE.sh JJAS $comp AMMACROSS -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1 380 ./multi_ZONE.sh MAM $comp ZON -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1 381 ./multi_ZONE.sh SON $comp ZON -runsfile $runstxt >> ${LOGD}/Z$$ 2>&1 382 fi 383 311 384 if [ ! -f $COMP_D/1D/1D.html -a $und = 1 ] ; then 385 echo '#####################################################################' 386 echo 4/ Lancement du 1D 387 echo '#####################################################################' 312 388 cd $COMP_D 313 ~/LMDZ/1D/serie1d.sh $comp 389 echo log in ${LOGD}/1D$$ 390 ~/LMDZ/1D/serie1d.sh $comp > ${LOGD}/1D$$ 2>&1 314 391 cd $local 315 392 fi 316 393 317 echo '########################################################################'318 echo 5/ Métriques319 echo '########################################################################'320 394 if [ $tuning_metrics = 1 -a ! -d $COMP_D/METRICS ] ; then 321 echo metrics.sh 395 echo '#####################################################################' 396 echo 5.1/ Metriques LMD : $tuning_metrics 397 echo '#####################################################################' 398 echo metrics.sh, log in ${LOGD}/METRICS$$ 322 399 cd $local/METRICS 323 ./metrics.sh $comp 400 #./metrics.sh -runsfile $runstxt $comp 401 ./metrics.sh $comp > ${LOGD}/METRICS$$ 2>&1 402 fi 403 404 if [ $pcmdi_metrics = 1 ] ; then 405 echo '#####################################################################' 406 echo 5.2/ Metriques PCMDI : $pcmdi_metrics 407 echo '#####################################################################' 408 cd $local 409 ./make_pcmdi.sh $comp 324 410 fi 325 411 326 412 if [ $regdyn = 1 ]; then 413 echo '#####################################################################' 414 echo 6/ Sorting by dynamical regimes : $regdyn 415 echo '#####################################################################' 327 416 cd ~/users/musat/regdyn/clean_regdyn 328 ./mk_all_regdyn.sh $comp 0 417 ./mk_all_regdyn.sh $comp 0 > ${LOGD}/REGDYN$$ 2>&1 329 418 cd $local 330 419 fi 331 420 332 421 if [ $esmval2 = 1 ]; then 422 echo '#####################################################################' 423 echo 7/ ESMvalTool : $esmval2 424 echo '#####################################################################' 333 425 cd $local 334 426 ./cvdp4atlas.sh $comp … … 337 429 338 430 if [ $mjo = 1 ]; then 431 echo '#####################################################################' 432 echo 8.1/ Rainfall variability / MJO diagnostics : $mjo 433 echo '#####################################################################' 339 434 cd ~/users/idelkadi/MJO 340 435 ./make_diagnosMJO.sh $comp … … 347 442 348 443 if [ $lma = 1 ]; then 349 cd $local 350 ./make_lma.sh $comp 351 fi 444 echo '#####################################################################' 445 echo 8.2/ Rainfall variability / LMA analysis of the MJO : $lma 446 echo '#####################################################################' 447 #IM150722 cd $local 448 #IM120722 ./make_lma.sh $comp 449 cd ~/users/musat/d_AXE2_LMA/ 450 ./make_LMA.sh $comp > ${LOGD}/LMA$$ 2>&1 451 cd ${local} 452 fi 453 352 454 if [ $axe2 = 1 ]; then 353 cd $local 354 ./make_axe2.sh -runstxt $runstxt $comp 355 fi 455 echo '#####################################################################' 456 echo 8.3/ Rainfall variability / metrics 457 echo '#####################################################################' 458 cd $local 459 bash make_axe2.sh -runstxt $runstxt $comp > ${LOGD}/axe2_$$ 2>&1 460 echo make_axe2.sh -runstxt $runstxt $comp '-->' ${LOGD}/axe2_$$ 461 fi 462 356 463 if [ $trmm = 1 ]; then 357 cd ~/users/mbonaz/ 464 echo '#####################################################################' 465 echo 8.4/ Rainfall variability / Marine Bonazzola : $trmm 466 echo '#####################################################################' 467 cd ~/users/musat/atlas/d_AXE2 358 468 ./Axe2_Marine.sh $comp 359 469 cd $local 360 470 fi 361 cd $local 362 if [ $pcmdi_metrics = 1 ] ; then 363 ./make_pcmdi.sh $comp 364 fi 471 472 if [ $river = 1 ]; then 473 echo '#####################################################################' 474 echo 9/ River discharges 475 echo '#####################################################################' 476 cd ~/users/idelkadi/AXE1/River 477 ./make_diagnoRiver.sh $comp 478 fi 479 365 480 if [ $axe4 = 1 ]; then 481 echo '#####################################################################' 482 echo 10/ Poles 483 echo '#####################################################################' 366 484 cd $local 367 485 ./make_axe4.sh $comp … … 369 487 370 488 if [ "$reflcld_histo" = "1" ] ; then 371 cd ~/users/idelkadi/AXE3/ 489 echo '#####################################################################' 490 echo 11/ reflcld_histo : $reflcld_histo 491 echo '#####################################################################' 492 cd ~/users/idelkadi/AXE3/CldReflCldFrac 372 493 ./make_scatReflCld.sh $comp 373 494 cd $local … … 375 496 376 497 if [ $vertcld_calipso = 1 ] ; then 498 echo '#####################################################################' 499 echo 12/ Calipso : $vertcld_calipso 500 echo '#####################################################################' 377 501 cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/DJF 378 502 ./make_VerticalMzCldCalipso.sh $comp 379 503 cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/JJA 380 504 ./make_VerticalMzCldCalipso.sh $comp 505 cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/MAM 506 ./make_VerticalMzCldCalipso.sh $comp 507 cd ~/users/idelkadi/AXE3/Calipso/CoupeVerticale/SON 508 ./make_VerticalMzCldCalipso.sh $comp 381 509 cd ~/users/idelkadi/AXE3/Calipso/Stratos 382 510 ./make_StratosCalipso.sh $comp … … 384 512 385 513 386 echo '########################################################################'387 echo 6/ Stations388 echo '########################################################################'389 390 514 if [ $stations_day = 1 ] ; then 515 echo '#####################################################################' 516 echo 13/ Stations 517 echo '#####################################################################' 391 518 ~/users/Binta/bibi.sh $comp 392 519 ~/users/cheruy/bibi.sh $comp … … 397 524 fi 398 525 399 echo '########################################################################'400 echo 7/ generation des pages html401 echo '########################################################################'402 403 526 if [ $html = 1 ] ; then 404 echo ./make_html_libigcm_ai.sh --comp $comp 405 ./make_html_libigcm.sh --comp $comp 406 cd $local 407 ./html_entete.sh ${comp} ${dataref} 408 ./make_index_html.sh ${comp} ${dataref} 409 ./html_tuning.sh $comp 410 ./html_tuning_min.sh $comp 411 ./html_accueil.sh $comp 412 ./html_1D.sh $comp 413 ./html_lma.sh $comp 414 ./html_pcmdi.sh $comp 527 echo '#####################################################################' 528 echo 14/ generation des pages html 529 echo '#####################################################################' 530 cd ${local} 531 echo ./make_html_libigcm.sh --comp $comp --runstxt $runstxt 532 ./make_html_libigcm.sh --comp $comp --runstxt $runstxt > ${LOGD}/html$$ 2>&1 533 echo log in ${LOGD}/html$$ 534 ./html_entete.sh $comp ${dataref} >> ${LOGD}/html$$ 2>&1 535 cd ${local}/html 536 ./make_index_html.sh ${comp} ${dataref} >> ${LOGD}/html$$ 2>&1 537 cd $local 538 ./html_tuning.sh $comp >> ${LOGD}/html$$ 2>&1 539 ./html_tuning_min.sh $comp >> ${LOGD}/html$$ 2>&1 540 ./html_accueil.sh $comp >> ${LOGD}/html$$ 2>&1 541 ./html_1D.sh $comp >> ${LOGD}/html$$ 2>&1 542 ./html_lma.sh $comp >> ${LOGD}/html_LMA$$ 2>&1 543 ./html_pcmdi.sh $comp >> ${LOGD}/html$$ 2>&1 415 544 ./html_all.sh >| $MULTIDIR/all.html 416 545 … … 425 554 # cat $COMP_D/metrics-CMIP5-AMIP-as-ref.html >> $COMP_D/PCMDI.html 426 555 for i in 1 2 3 4 5 6 7 ; do 427 ./html_axe$i.sh $comp 556 ./html_axe$i.sh $comp >> ${LOGD}/html$$ 2>&1 428 557 done 558 559 echo Multi atlas, log in ${LOGD}/multiatlas$$ 560 # for proj in GLOB SH NH ; do 561 # for proj in ATLTN GLOB SH NH ; do 429 562 for proj in GLOB SH NH ; do 430 563 for bias in BIAS MAPS ; do 431 for season in YEAR DJF JJA ; do 432 echo ./multi_atlas.sh $comp $bias $season $proj $RUNS 433 ./multi_atlas.sh $comp $bias $season $proj $RUNS >> out.com$$ 564 for season in YEAR DJF JJA MAM SON ; do 565 ./multi_atlas.sh $comp $bias $season $proj $RUNS >> ${LOGD}/multiatlas$$ 2>&1 434 566 done 435 567 done … … 441 573 cd $local 442 574 ./webpage_multi.sh $comp 443 444 fi 575 fi 576 577 echo UN NOVEL MULTI ATLAS EST DISPONIBLE sur $COMP_D/ACCUEIL.html
Note: See TracChangeset
for help on using the changeset viewer.