Changeset 4307 for BOL/Multi_atlas/make_html_libigcm.sh
- Timestamp:
- Oct 26, 2022, 1:07:21 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Multi_atlas/make_html_libigcm.sh
r3882 r4307 1 1 #!/bin/bash 2 # AI mai 2020 3 # A REFAIRE PROPREMENT 4 # A NETTOYER, ADAPTER AUX AUTRES MACHINES 2 5 3 6 4 ########################################################################### … … 23 21 24 22 23 logname=aidel 25 24 comp=COMP 26 25 … … 39 38 --comp) comp="${2}" 40 39 shift;; 40 --runstxt) runstxt="${2}" 41 shift ;; 41 42 --id) CONFIGNAME="${2}" 42 43 shift;; … … 50 51 done 51 52 52 local=`pwd -P` 53 54 login=`whoami` 55 hostname=`hostname` 56 if [ ${hostname:0:5} = cicla ] ; then 57 DODSDIR=/thredds/ipsl 58 HTML=http://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/$login/lmdz/MultiSimu/$comp 59 machine=ciclad 60 fi 61 if [ ${hostname:0:5} = camel ] ; then 62 DODSDIR=/thredds/ipsl 63 fi 64 if [ ${hostname:0:5} = irene ] ; then 65 DODSDIR= 66 fi 67 if [ ${hostname:0:5} = jean- ] ; then 68 DODSDIR= 69 fi 70 71 tmpdir=$DODSDIR/$login/lmdz 53 ###tmpdir=/thredds/ipsl/fabric/lmdz 54 tmpdir=/thredds/ipsl/fabric/lmdz 72 55 EXPNAME=B96x95x39/V20090611.dev/ 73 56 ROOTWORK=$tmpdir 74 57 ROOTWEBORIG="" 75 58 EXPNAME=IGCM_OUT/$CONFIGNAME/DEVT/clim 59 machine=ciclad 60 76 61 77 62 STORAGE=$ARCHIVE … … 80 65 HTML_D=$ROOTSTORAGE/HTML 81 66 67 machine=ciclad 68 82 69 if [ "$machine" = "ciclad" ] ; then 83 70 EXPNAME=NPV5LRL79 84 71 put=cp 85 CICLAD=$DODSDIR/$login/lmdz 72 ###CICLAD=/thredds/ipsl/fabric/lmdz 73 CICLAD=/thredds/ipsl/fabric/lmdz 86 74 ARCHIVE=$CICLAD/STORE 87 75 workdir=$CICLAD/WORK 88 76 STORAGE=$CICLAD 89 ROOTWEBatlas=http://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/$login/lmdz/STORE/$EXPNAME 90 MULTIDIR=$DODSDIR/$login/lmdz/MultiSimu 77 ROOTWEBatlas=http://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/fabric/lmdz/STORE/$EXPNAME 78 ###MULTIDIR=/thredds/ipsl/fabric/lmdz/MultiSimu 79 MULTIDIR=/thredds/ipsl/fabric/lmdz/MultiSimu 91 80 COMP_D=$MULTIDIR/$comp 92 81 DEF_FILE=$COMP_D/def.txt 93 82 HTML_D=$COMP_D 94 runstxt=$local/runs.txt83 #runstxt=/home/fabric/LMDZ/MultiSimu/runs.txt 95 84 fi 96 85 … … 99 88 ROOTDODS=DODS/pub/$LOGNAME/$CONFIGNAME 100 89 ROOTWEB="http://dodsp.idris.fr/$LOGNAME/$EXPNAME" 101 ROOTWEB_PRODout=https://vesg.ipsl.upmc.fr/thredds/catalog/store_thredds/aidel/LMDZOR/DEVT/clim 90 # http://dods.extra.cea.fr/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim/AR5.0lr/ATM/Analyse/COSP/Calipso/1982-1989 91 #ROOTWEB_PROD=http://dods.extra.cea.fr/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim 92 ROOTWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim 93 ROOTWEB_PROD=https://thredds-su.ipsl.fr/thredds/catalog/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim 94 ROOTWEB_PROD=https://thredds-su.ipsl.fr/thredds/catalog/store_thredds/aidel/IGCM_OUT/LMDZOR/DEVT/clim 95 ROOTWEB_PRODout=https://thredds-su.ipsl.fr/thredds/catalog/store_thredds/aidel/LMDZOR/DEVT/clim 96 #STOREWEB_PROD=http://dods.extra.cea.fr/store/aidel/IGCM_OUT/LMDZOR/DEVT/clim 97 #STOREWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/store/aidel/IGCM_OUT/LMDZOR/DEVT/clim 102 98 STOREWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/store_thredds/aidel/IGCM_OUT/LMDZOR/DEVT/clim 103 99 STOREWEB_PRODold=http://esgf.extra.cea.fr/thredds/catalog/store/aidel/IGCM_OUT/LMDZOR/DEVT/clim 100 #ROOTWEBatlas=http://dods.idris.fr/$LOGNAME/$CONFIGNAME/DEVT/clim 104 101 if [ "$ROOTWEBORIG" = "" ] ; then 105 102 ROOTWEBORIG=ROOTWEBlibigcm … … 126 123 longc="" ; i=0 ; while [ $i != $longn ] ; do (( i = $i + 1 )) ; longc="$longc"_ ; done 127 124 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 125 htmlfile=$CICLAD/HTML/tmp.html ; rm -f $htmlfile ; touch $htmlfile 126 errfile=$CICLAD/HTML/tmphtml$$.err ; rm -f $errfile ; touch $errfile 131 127 D_work=$ROOTWORK/tmp_makehtml$$ ; rm -rf $D_work ; mkdir -p $D_work 132 128 emptyelt='<td> - </td>' 129 133 130 cat <<eod>| $htmlfile 134 131 <table cellpadding="2" cellspacing="2" border="1" … … 136 133 margin-right: auto;"> 137 134 <tr> 138 <td><a href=" $HTML/def.txt"> RUN (link to outputs) </a></td>135 <td><a href="https://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/fabric/lmdz/MultiSimu/$comp/def.txt"> RUN (link to outputs) </a></td> 139 136 <td> Atlas YEAR</td> 140 137 <td> Atlas --DJF-- </td> 141 138 <td> Atlas --JJA-- </td> 139 <td> Atlas --MAM-- </td> 140 <td> Atlas --SON-- </td> 142 141 <td> Description of the simulation $longc </td> 143 142 <td> Period </td> … … 154 153 echo '<tr>' >> $htmlfile 155 154 echo "<td> CLIMATOS </td>" >> $htmlfile 155 echo "<td> </td>" >> $htmlfile 156 echo "<td> </td>" >> $htmlfile 156 157 echo "<td> </td>" >> $htmlfile 157 158 echo "<td> </td>" >> $htmlfile … … 176 177 sim=`echo $line | awk ' { print $1 } '` 177 178 simdir=`grep -w "^$sim " $runstxt | awk ' { print $2 } '` 179 echo simdir $simdir 178 180 run=`basename $simdir ` 179 181 years=`echo $line | awk ' { print $2 } '` 182 # years=`grep '^'$run' ' $DEF_FILE | awk ' { print $2 }'` 180 183 yearsb=`echo $years | sed -e 's/_/-/'` 181 184 echo run $run … … 187 190 NCFILE=${run}_SE_${years}_1M_histmth.nc 188 191 192 # AI partie rapat 193 #$home/Diagnos_v6/dods_publi.sh $EXPNAME/$run/DEBUG 194 #Mettre les sorties sur dods 195 #$home/Diagnos_v6/dods_publi.sh $EXPNAME/$run/ATM/Output 196 #Mettre les sorties sur dods les restart 197 #$home/Diagnos_v6/dods_publi.sh $EXPNAME/$run/RESTART 198 199 189 200 #-------------------------------------------------------------------------- 190 201 # Liens vers les fichiers, monitoring et atlas 191 202 #-------------------------------------------------------------------------- 203 # echo "<td><a href=\"$ROOTWEBatlas/"$run"\"> "$run" </a></td>" >> $htmlfile 192 204 echo "<td><a href=\"$ROOTWEB_PRODout/"$run"/catalog.html\"> "$sim" </a></td>" >> $htmlfile 193 205 … … 198 210 if [ 1 = 1 ] ; then 199 211 200 for SEAS in YEAR DJF JJA ; do212 for SEAS in YEAR DJF JJA MAM SON ; do 201 213 echo '<td>' >> $htmlfile 202 214 for PROJ in GLOB NH SH ; do … … 209 221 atlasf=$ROOTSTORAGE/$run/ATLAS/SE_$years/ATM/$atlas 210 222 fi 211 # ATTENTION A REFAIRE EN FONCTION DE LA MACHINE 212 atlas_html=`echo $atlasf | sed -e 's:/thredds/ipsl/:http\:// vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/:'`223 ###atlas_html=`echo $atlasf | sed -e 's:/thredds/ipsl/:http\://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/:'` 224 atlas_html=`echo $atlasf | sed -e 's:/thredds/ipsl/:http\://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/:'` 213 225 echo atlas_html $atlas_html 214 226 echo atlasf $atlasf … … 244 256 echo OK0 245 257 if [ $glob = 1 ] ; 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 258 echo OK GGGGGGGGGGGGG $glob 259 listeval="" 260 echo LISTEVAR $listevar 261 # echo NCFILE $NCFILE 262 for var in $listevar ; do 263 echo $ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob 264 # if [ -f "$ROOTSTORAGE/$run/ATM/Analyse/Bilans/$years/${run}_bilans.data" ] ; then 265 # if [ -f "$ROOTWORK/VLR/YEAR/${run}_$years/METRICS/glob" ] ; then 266 if [ -f "$ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob" ] ; then 252 267 val=`grep "^$var " $ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob | awk ' { print $2 }' ` 253 268 echo $val … … 262 277 echo LISTEVAL $listeval 263 278 279 264 280 ########################################################################### 265 281 # FIN DE LA BOUCLE SUR LES SIMULATIONS … … 305 321 306 322 mkdir -p $HTML_D 307 $put $htmlfile $HTML_D/Table_simulations_${comp}.html 308 echo $put $htmlfile $HTML_D/Table_simulations_${comp}.html 309 323 $put $htmlfile $HTML_D/Table_simulations_$comp.html 324 echo $put $htmlfile $HTML_D/Table_simulations_$comp.html 325 326 #$home/Diagnos_v6/dods_publi.sh $EXPNAME/HTML
Note: See TracChangeset
for help on using the changeset viewer.