Changeset 3694 for BOL/Multi_atlas
- Timestamp:
- Jun 4, 2020, 11:31:02 AM (5 years ago)
- Location:
- BOL/Multi_atlas
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Multi_atlas/Utils/atlas0.sh
r3684 r3694 1 1 local=`pwd -P` 2 cd $local3 2 4 3 date … … 95 94 96 95 echo Nettoyage des fichiers corrompus du cache 97 ~/LMDZ/atlas/clean_cache.sh96 $local/clean_cache.sh $DIRATLAS 98 97 echo passage $ipass >> atlas.sh.log 99 98 html=index_example_"$seas"_"$sim".html 100 99 htmlopt=index_${proj}_"$seas"_"$sim".html 101 100 rm -f $html 102 ###echo python /home/fabric/LMDZ/atlas/$pyatlas --force -v $vars -s `basename $simdir`_$years -t $ref -p $seas -i $simdir/ATM/Analyse/SE103 101 echo python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas --root $simdir/ATM/Analyse/SE 104 ###python /home/fabric/LMDZ/atlas/$pyatlas --force -v $vars -s `basename $simdir`_$years -t $ref -p $seas -i $simdir/ATM/Analyse/SE105 102 python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas --root $simdir/ATM/Analyse/SE 106 #python /home/fabric/LMDZ/atlas/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas -i $simdir/ATM/Analyse/SE --root XXXX107 103 108 104 if [ ! -f "$html" -o "`wc -l $html | awk ' { print $1 } '`" = "0" ] ; then -
BOL/Multi_atlas/atlas/atlas.sh
r3684 r3694 14 14 login=aidelkad 15 15 DODSDIR=/prodigfs/ipslfs/dods 16 ########################################################################### 16 ######################################################################################################## 17 17 # Environnement 18 18 module list 19 19 which python 20 20 ulimit -s unlimited 21 ATLAS_DIR=/prodigfs/ipslfs/dods/aidelkad/lmdz/atlas/Atlas12770 ; mkdir -p22 21 export PYTHONPATH=:/data/aidelkad/climaf:/home/igcmg/prodiguer-client:/home/fabric/users/denvil/climaf 23 22 export PATH=/opt/glite/globus/bin:.:/home/sdipsl/CONFIG_MC2/MAKE_CONF:/opt/anaconda/bin:/opt/nco-4.5.2/bin:/opt/netcdf43/gfortran/bin:/opt/ferret-6.7.2/fast:/opt/ferret-6.7.2/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/aidelkad/bin:/home/fabric/users/denvil/climaf/bin … … 25 24 if [ ! -d /prodigfs/ipslfs/dods/aidelkad/climafCache ] ; then mkdir -p /prodigfs/ipslfs/dods/aidelkad/climafCache ; fi 26 25 export CLIMAF_CACHE=/prodigfs/ipslfs/dods/aidelkad/climafCache 27 echo CLIMAF_CACHE $CLIMAF_CACHE 28 MULTIDIR=/prodigfs/ipslfs/dods/ipslfs/dods/aidelkad/lmdz/MultiSimu 29 ########################################################################### 26 echo CLIMAF_CACHE 27 MULTIDIR=/prodigfs/ipslfs/dods/aidelkad/lmdz/MultiSimu 28 DIRATLAS=/prodigfs/ipslfs/dods/aidelkad/lmdz/atlas 29 ATLAS_DIR=/prodigfs/ipslfs/dods/aidelkad/lmdz/atlas/Atlas56853 30 if [ ! -d /prodigfs/ipslfs/dods/aidelkad/lmdz/atlas/Atlas56853 ] ; then mkdir -p /prodigfs/ipslfs/dods/aidelkad/lmdz/atlas/Atlas56853 ; fi 31 ######################################################################################################## 32 ######################################################################################################## 33 # Environnement 34 module list 35 which python 36 ulimit -s unlimited 37 export PYTHONPATH=:/data/aidelkad/climaf:/home/igcmg/prodiguer-client:/home/fabric/users/denvil/climaf 38 export PATH=/opt/glite/globus/bin:.:/home/sdipsl/CONFIG_MC2/MAKE_CONF:/opt/anaconda/bin:/opt/nco-4.5.2/bin:/opt/netcdf43/gfortran/bin:/opt/ferret-6.7.2/fast:/opt/ferret-6.7.2/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/aidelkad/bin:/home/fabric/users/denvil/climaf/bin 39 STORAGE=/prodigfs/ipslfs/dods/aidelkad/lmdz/STORE 40 if [ ! -d /prodigfs/ipslfs/dods/aidelkad/climafCache ] ; then mkdir -p /prodigfs/ipslfs/dods/aidelkad/climafCache ; fi 41 export CLIMAF_CACHE=/prodigfs/ipslfs/dods/aidelkad/climafCache 42 echo CLIMAF_CACHE 43 MULTIDIR=/prodigfs/ipslfs/dods/aidelkad/lmdz/MultiSimu 44 DIRATLAS=/prodigfs/ipslfs/dods/aidelkad/lmdz/atlas 45 ATLAS_DIR=/prodigfs/ipslfs/dods/aidelkad/lmdz/atlas/Atlas64042 46 if [ ! -d /prodigfs/ipslfs/dods/aidelkad/lmdz/atlas/Atlas64042 ] ; then mkdir -p /prodigfs/ipslfs/dods/aidelkad/lmdz/atlas/Atlas64042 ; fi 47 ######################################################################################################## 30 48 local=`pwd -P` 31 cd $local32 49 33 50 date … … 124 141 125 142 echo Nettoyage des fichiers corrompus du cache 126 $local/clean_cache.sh 143 $local/clean_cache.sh $DIRATLAS 127 144 echo passage $ipass >> atlas.sh.log 128 145 html=index_example_"$seas"_"$sim".html 129 146 htmlopt=index_${proj}_"$seas"_"$sim".html 130 147 rm -f $html 131 ###echo python /home/fabric/LMDZ/atlas/$pyatlas --force -v $vars -s `basename $simdir`_$years -t $ref -p $seas -i $simdir/ATM/Analyse/SE132 148 echo python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas --root $simdir/ATM/Analyse/SE 133 ###python /home/fabric/LMDZ/atlas/$pyatlas --force -v $vars -s `basename $simdir`_$years -t $ref -p $seas -i $simdir/ATM/Analyse/SE134 149 python $local/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas --root $simdir/ATM/Analyse/SE 135 #python /home/fabric/LMDZ/atlas/$pyatlas -v $vars -s `basename $simdir`_$years -t $ref -p $seas -i $simdir/ATM/Analyse/SE --root XXXX136 150 137 151 if [ ! -f "$html" -o "`wc -l $html | awk ' { print $1 } '`" = "0" ] ; then -
BOL/Multi_atlas/atlas/clean_cache.sh
r3684 r3694 1 1 #!/bin/bash 2 2 3 DIRATLAS=$1 3 4 4 5 cd /prodigfs/ipslfs/dods/fabric/lmdz/atlas 5 cd $DIRATLAS 6 6 7 7 i=1 -
BOL/Multi_atlas/install_multi_atlas.sh
r3684 r3694 11 11 # Definition des coleurs d'affichage 12 12 noir='\e[0;30m' gris='\e[1;30m' rougefonce='\e[0;31m' rose='\e[1;31m' vertfonce='\e[0;32m' vertclair='\e[1;32m' orange='\e[0;33m' jaune='\e[1;33m' bleufonce='\e[0;34m' bleuclair='\e[1;34m' violetfonce='\e[0;35m' violetclair='\e[1;35m' cyanfonce='\e[0;36m' cyanclair='\e[1;36m' grisclair='\e[0;37m' blanc='\e[1;37m' neutre='\e[0;m' 13 ## 14 ## 13 15 # AI avril 2020 : A FAIRE : 14 # A FAIRE15 16 # Utiliser des fonctions entete, ... 16 17 # A function pour definir l entete du job en fonction de la machine 17 18 #function jobentete { #1er argument doit etre le nom de la machine 18 19 20 #set -x 21 # Nom machine et compte 19 22 hostname=`hostname` 20 23 login=`whoami` 21 24 25 # Definitions en fonction de la machine 22 26 # CICLAD 23 27 if [ ${hostname:0:5} = cicla ] ; then 28 # chemin vers le rep dods de base 24 29 DODSDIR=/prodigfs/ipslfs/dods 30 # Rep ou sont stockes les multiatlas 31 MULTIDIR=$DODSDIR/$login/lmdz/MultiSimu 32 if [ ! -d $MULTIDIR ] ; then mkdir -p $MULTIDIR ; fi 33 34 # Def entete des job 25 35 cat <<eod >> entete.sh 26 36 #PBS -N atlas … … 41 51 eod 42 52 53 # Def env atlas 43 54 cat <<eod >> defatlasenv.sh 44 ########################################################################### 55 ######################################################################################################## 45 56 # Environnement 46 57 module list 47 58 which python 48 59 ulimit -s unlimited 49 ATLAS_DIR=$DODSDIR/$login/lmdz/atlas/Atlas$$ ; mkdir -p $ATLAS_DIR50 60 export PYTHONPATH=$PYTHONPATH:/home/fabric/users/denvil/climaf 51 61 export PATH=$PATH:/home/fabric/users/denvil/climaf/bin … … 54 64 export CLIMAF_CACHE=$DODSDIR/$login/climafCache 55 65 echo CLIMAF_CACHE $CLIMAF_CACHE 56 MULTIDIR=$DODSDIR/ipslfs/dods/$login/lmdz/MultiSimu 57 ########################################################################### 66 MULTIDIR=$MULTIDIR 67 DIRATLAS=$DODSDIR/$login/lmdz/atlas 68 ATLAS_DIR=$DODSDIR/$login/lmdz/atlas/Atlas$$ 69 if [ ! -d $DODSDIR/$login/lmdz/atlas/Atlas$$ ] ; then mkdir -p $DODSDIR/$login/lmdz/atlas/Atlas$$ ; fi 70 ######################################################################################################## 58 71 eod 59 72 … … 141 154 # Machines locales lmd 142 155 143 MULTIDIR=$DODSDIR/ipslfs/dods/$login/lmdz/MultiSimu144 if [ ! -d $MULTIDIR ] ; then mkdir -p $MULTIDIR ; fi145 146 156 echo -e "${noir}%%%%%%%%%%%%%%%%%%%%%%%%% ${rougefonce} MULTIATLAS LMDZ ${noir}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" 147 157 echo -e "${bleufonce}" To create your multi-atlas you needs : 148 158 echo 1. to create your multiatlas directory "example Multi01" : 149 echo - mkdir -p /prodigfs/ipslfs/dods/ YourLoginName/lmdz/MultiSimu/Multi01159 echo - mkdir -p /prodigfs/ipslfs/dods/$login/lmdz/MultiSimu/Multi01 150 160 echo 2. to define some characeristics of your multi-atlas "names, dates, description of simulations and atlas variables" : 151 echo - cp Utils/def.txt Utils/atlas-def /prodigfs/ipslfs/dods/ YourLoginName/lmdz/MultiSimu/Multi01/.161 echo - cp Utils/def.txt Utils/atlas-def /prodigfs/ipslfs/dods/$login/lmdz/MultiSimu/Multi01/. 152 162 echo define "names, date, description" of simulations in file : 153 echo - /prodigfs/ipslfs/dods/ YourLoginName/lmdz/MultiSimu/Multi01/def.txt163 echo - /prodigfs/ipslfs/dods/$login/lmdz/MultiSimu/Multi01/def.txt 154 164 echo define atlas variables in file 155 echo - /prodigfs/ipslfs/dods/ YourLoginName/lmdz/MultiSimu/Multi01/atlas.def165 echo - /prodigfs/ipslfs/dods/$login/lmdz/MultiSimu/Multi01/atlas.def 156 166 157 167 rm -f job_multi.sh -
BOL/Multi_atlas/make_MOY.sh
r3684 r3694 46 46 MAINDIR=$DODSDIR/$login/lmdz 47 47 WRK=$MAINDIR/WORK/biais$$ 48 orig=$MAINDIR/$GR/$SEAS 49 if [ ! -d $orig ] ; then mkdir $orig ; fi 48 50 49 51 if [ -d $WRK ] ; then WRK=$WRK$$ ; fi … … 54 56 cd $orig 55 57 for sim in $SIM ; do 56 if [ $sim = OBS ] ; then57 MAINDIR=$DODSDIR/fabric/lmdz58 else59 MAINDIR=$DODSDIR/$login/lmdz60 fi61 orig=$MAINDIR/$GR/$SEAS62 58 63 59 echo $sim … … 66 62 for var in $vars ; do 67 63 68 echo $orig/$sim/$d64 #echo $orig/$sim/$d 69 65 for d in $zone ; do 66 echo $orig/$sim/$d 70 67 mkdir -p $orig/$sim/$d 71 68 if [ $force_create = 1 ] ; then -
BOL/Multi_atlas/make_html_libigcm.sh
r3684 r3694 99 99 ROOTDODS=DODS/pub/$LOGNAME/$CONFIGNAME 100 100 ROOTWEB="http://dodsp.idris.fr/$LOGNAME/$EXPNAME" 101 # http://dods.extra.cea.fr/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim/AR5.0lr/ATM/Analyse/COSP/Calipso/1982-1989102 #ROOTWEB_PROD=http://dods.extra.cea.fr/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim103 ROOTWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim104 ROOTWEB_PROD=https://vesg.ipsl.upmc.fr/thredds/catalog/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim105 ROOTWEB_PROD=https://vesg.ipsl.upmc.fr/thredds/catalog/store_thredds/aidel/IGCM_OUT/LMDZOR/DEVT/clim106 101 ROOTWEB_PRODout=https://vesg.ipsl.upmc.fr/thredds/catalog/store_thredds/aidel/LMDZOR/DEVT/clim 107 #STOREWEB_PROD=http://dods.extra.cea.fr/store/aidel/IGCM_OUT/LMDZOR/DEVT/clim108 #STOREWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/store/aidel/IGCM_OUT/LMDZOR/DEVT/clim109 102 STOREWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/store_thredds/aidel/IGCM_OUT/LMDZOR/DEVT/clim 110 103 STOREWEB_PRODold=http://esgf.extra.cea.fr/thredds/catalog/store/aidel/IGCM_OUT/LMDZOR/DEVT/clim 111 #ROOTWEBatlas=http://dods.idris.fr/$LOGNAME/$CONFIGNAME/DEVT/clim112 104 if [ "$ROOTWEBORIG" = "" ] ; then 113 105 ROOTWEBORIG=ROOTWEBlibigcm … … 134 126 longc="" ; i=0 ; while [ $i != $longn ] ; do (( i = $i + 1 )) ; longc="$longc"_ ; done 135 127 136 htmlfile=$CICLAD/HTML/tmp.html ; rm -f $htmlfile ; touch $htmlfile 137 errfile=$CICLAD/HTML/tmphtml$$.err ; rm -f $errfile ; touch $errfile 128 if [ ! -d $STORAGE/HTML ] ; then mkdir -p $STORAGE/HTML ; fi 129 htmlfile=$STORAGE/HTML/tmp.html ; rm -f $htmlfile ; touch $htmlfile 130 errfile=$STORAGE/HTML/tmphtml$$.err ; rm -f $errfile ; touch $errfile 138 131 D_work=$ROOTWORK/tmp_makehtml$$ ; rm -rf $D_work ; mkdir -p $D_work 139 132 emptyelt='<td> - </td>' 140 141 133 cat <<eod>| $htmlfile 142 134 <table cellpadding="2" cellspacing="2" border="1" … … 186 178 run=`basename $simdir ` 187 179 years=`echo $line | awk ' { print $2 } '` 188 # years=`grep '^'$run' ' $DEF_FILE | awk ' { print $2 }'`189 180 yearsb=`echo $years | sed -e 's/_/-/'` 190 181 echo run $run … … 196 187 NCFILE=${run}_SE_${years}_1M_histmth.nc 197 188 198 # AI partie rapat199 #$home/Diagnos_v6/dods_publi.sh $EXPNAME/$run/DEBUG200 #Mettre les sorties sur dods201 #$home/Diagnos_v6/dods_publi.sh $EXPNAME/$run/ATM/Output202 #Mettre les sorties sur dods les restart203 #$home/Diagnos_v6/dods_publi.sh $EXPNAME/$run/RESTART204 205 206 189 #-------------------------------------------------------------------------- 207 190 # Liens vers les fichiers, monitoring et atlas 208 191 #-------------------------------------------------------------------------- 209 # echo "<td><a href=\"$ROOTWEBatlas/"$run"\"> "$run" </a></td>" >> $htmlfile210 192 echo "<td><a href=\"$ROOTWEB_PRODout/"$run"/catalog.html\"> "$sim" </a></td>" >> $htmlfile 211 193 … … 262 244 echo OK0 263 245 if [ $glob = 1 ] ; then 264 echo OK GGGGGGGGGGGGG $glob 265 listeval="" 266 echo LISTEVAR $listevar 267 # echo NCFILE $NCFILE 268 for var in $listevar ; do 269 echo $ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob 270 # if [ -f "$ROOTSTORAGE/$run/ATM/Analyse/Bilans/$years/${run}_bilans.data" ] ; then 271 # if [ -f "$ROOTWORK/VLR/YEAR/${run}_$years/METRICS/glob" ] ; then 272 if [ -f "$ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob" ] ; then 246 echo OK GGGGGGGGGGGGG $glob 247 listeval="" 248 echo LISTEVAR $listevar 249 for var in $listevar ; do 250 echo $ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob 251 if [ -f "$ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob" ] ; then 273 252 val=`grep "^$var " $ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob | awk ' { print $2 }' ` 274 253 echo $val … … 283 262 echo LISTEVAL $listeval 284 263 285 286 264 ########################################################################### 287 265 # FIN DE LA BOUCLE SUR LES SIMULATIONS … … 327 305 328 306 mkdir -p $HTML_D 329 $put $htmlfile $HTML_D/Table_simulations_$comp.html 330 echo $put $htmlfile $HTML_D/Table_simulations_$comp.html 331 332 #$home/Diagnos_v6/dods_publi.sh $EXPNAME/HTML 307 $put $htmlfile $HTML_D/Table_simulations_${comp}.html 308 echo $put $htmlfile $HTML_D/Table_simulations_${comp}.html 309 -
BOL/Multi_atlas/multi_atlas.sh
r3684 r3694 136 136 done 137 137 138 echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR http://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/ fabric/lmdz/MultiSimu/$comp138 echo UN NOVEL MULTI ATLAS EST DISPONIBLE SUR http://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/"$login"/lmdz/MultiSimu/"${comp}"/ACCUEIl.html
Note: See TracChangeset
for help on using the changeset viewer.