Ignore:
Timestamp:
Oct 26, 2022, 1:07:21 PM (20 months ago)
Author:
musat
Message:

Fusion entre la version commune (compte fabric) et la version perso
du multi-atlas incluant

  • la fiabilisation de la realisation des cartes
  • la correction des coupes (latitude,altitude) pour les biais
  • l'ajout d'une option pour des multi-atlas par rapport a une simulation de reference
  • l'ajout d'options pour un multi-atlas regional
  • la mise a jour des thredds (repertoire & html) pour ciclad

IonelaMusat?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/Multi_atlas/make_html_libigcm.sh

    r3882 r4307  
    11#!/bin/bash
    2 # AI mai 2020
    3 # A REFAIRE PROPREMENT
    4 # A NETTOYER, ADAPTER AUX AUTRES MACHINES
     2
    53
    64###########################################################################
     
    2321
    2422
     23logname=aidel
    2524comp=COMP
    2625
     
    3938        --comp) comp="${2}"
    4039                 shift;;
     40        --runstxt) runstxt="${2}"
     41                 shift ;;
    4142        --id) CONFIGNAME="${2}"
    4243                 shift;;
     
    5051done
    5152
    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
     54tmpdir=/thredds/ipsl/fabric/lmdz
    7255EXPNAME=B96x95x39/V20090611.dev/
    7356ROOTWORK=$tmpdir
    7457ROOTWEBORIG=""
    7558EXPNAME=IGCM_OUT/$CONFIGNAME/DEVT/clim
     59machine=ciclad
     60
    7661
    7762STORAGE=$ARCHIVE
     
    8065HTML_D=$ROOTSTORAGE/HTML
    8166
     67machine=ciclad
     68
    8269if [ "$machine" = "ciclad" ] ; then
    8370EXPNAME=NPV5LRL79
    8471put=cp
    85 CICLAD=$DODSDIR/$login/lmdz
     72###CICLAD=/thredds/ipsl/fabric/lmdz
     73CICLAD=/thredds/ipsl/fabric/lmdz
    8674ARCHIVE=$CICLAD/STORE
    8775workdir=$CICLAD/WORK
    8876STORAGE=$CICLAD
    89 ROOTWEBatlas=http://vesg.ipsl.upmc.fr/thredds/fileServer/IPSLFS/$login/lmdz/STORE/$EXPNAME
    90 MULTIDIR=$DODSDIR/$login/lmdz/MultiSimu
     77ROOTWEBatlas=http://thredds-su.ipsl.fr/thredds/fileServer/ipsl_thredds/fabric/lmdz/STORE/$EXPNAME
     78###MULTIDIR=/thredds/ipsl/fabric/lmdz/MultiSimu
     79MULTIDIR=/thredds/ipsl/fabric/lmdz/MultiSimu
    9180COMP_D=$MULTIDIR/$comp
    9281DEF_FILE=$COMP_D/def.txt
    9382HTML_D=$COMP_D
    94 runstxt=$local/runs.txt
     83#runstxt=/home/fabric/LMDZ/MultiSimu/runs.txt
    9584fi
    9685
     
    9988ROOTDODS=DODS/pub/$LOGNAME/$CONFIGNAME
    10089ROOTWEB="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
     92ROOTWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim
     93ROOTWEB_PROD=https://thredds-su.ipsl.fr/thredds/catalog/work/aidel/IGCM_OUT/LMDZOR/DEVT/clim
     94ROOTWEB_PROD=https://thredds-su.ipsl.fr/thredds/catalog/store_thredds/aidel/IGCM_OUT/LMDZOR/DEVT/clim
     95ROOTWEB_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
    10298STOREWEB_PROD=http://esgf.extra.cea.fr/thredds/catalog/store_thredds/aidel/IGCM_OUT/LMDZOR/DEVT/clim
    10399STOREWEB_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
    104101if [ "$ROOTWEBORIG" = "" ] ; then
    105102ROOTWEBORIG=ROOTWEBlibigcm
     
    126123longc="" ; i=0 ; while [ $i != $longn ] ; do (( i = $i + 1 )) ; longc="$longc"_ ; done
    127124
    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
     125htmlfile=$CICLAD/HTML/tmp.html   ; rm -f $htmlfile ; touch $htmlfile
     126errfile=$CICLAD/HTML/tmphtml$$.err ; rm -f $errfile  ; touch $errfile
    131127D_work=$ROOTWORK/tmp_makehtml$$ ; rm -rf $D_work ; mkdir -p $D_work
    132128emptyelt='<td> - </td>'
     129
    133130cat <<eod>| $htmlfile
    134131<table cellpadding="2" cellspacing="2" border="1"
     
    136133margin-right: auto;">
    137134<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>
    139136<td> Atlas YEAR</td>
    140137<td> Atlas --DJF-- </td>
    141138<td> Atlas --JJA-- </td>
     139<td> Atlas --MAM-- </td>
     140<td> Atlas --SON-- </td>
    142141<td> Description of the simulation $longc </td>
    143142<td> Period </td>
     
    154153echo '<tr>' >> $htmlfile
    155154echo "<td> CLIMATOS </td>" >> $htmlfile
     155echo "<td>        </td>" >> $htmlfile
     156echo "<td>        </td>" >> $htmlfile
    156157echo "<td>        </td>" >> $htmlfile
    157158echo "<td>        </td>" >> $htmlfile
     
    176177    sim=`echo $line | awk ' { print $1 } '`
    177178    simdir=`grep -w "^$sim "  $runstxt | awk ' { print $2 } '`
     179    echo simdir $simdir
    178180    run=`basename $simdir `
    179181    years=`echo $line | awk ' { print $2 } '`
     182#    years=`grep '^'$run' ' $DEF_FILE | awk ' { print $2 }'`
    180183    yearsb=`echo $years | sed -e 's/_/-/'`
    181184    echo run $run
     
    187190NCFILE=${run}_SE_${years}_1M_histmth.nc
    188191
     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
    189200#--------------------------------------------------------------------------
    190201# Liens vers les fichiers, monitoring et atlas
    191202#--------------------------------------------------------------------------
     203#    echo "<td><a href=\"$ROOTWEBatlas/"$run"\"> "$run" </a></td>" >> $htmlfile
    192204    echo "<td><a href=\"$ROOTWEB_PRODout/"$run"/catalog.html\"> "$sim" </a></td>" >> $htmlfile
    193205
     
    198210     if [ 1 = 1 ] ; then
    199211
    200             for SEAS in YEAR DJF JJA ; do
     212            for SEAS in YEAR DJF JJA MAM SON ; do
    201213               echo '<td>' >> $htmlfile
    202214               for PROJ in GLOB NH SH ; do
     
    209221                     atlasf=$ROOTSTORAGE/$run/ATLAS/SE_$years/ATM/$atlas
    210222                 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/:'`
    213225                 echo atlas_html $atlas_html
    214226                 echo atlasf $atlasf
     
    244256echo OK0
    245257   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
    252267              val=`grep "^$var " $ROOTWORK/VLR/YEAR/${sim}_$years/METRICS/glob | awk ' { print $2 }' `
    253268            echo $val
     
    262277echo LISTEVAL $listeval
    263278
     279
    264280###########################################################################
    265281# FIN DE LA BOUCLE SUR LES SIMULATIONS
     
    305321
    306322mkdir -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
     324echo $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.