Ignore:
Timestamp:
Apr 30, 2021, 10:38:59 AM (3 years ago)
Author:
musat
Message:

Mise a jour des scripts par rapport a la version fabric
IM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/Multi_atlas/Utils/atlas0.sh

    r3884 r3885  
    4545elif [ $# = 0 ] ; then
    4646   sim=$RUN
    47    ref=OBS
     47   ref=$REF
    4848   seas=$SEASON
    4949   proj=$PROJ
     
    109109
    110110
    111 npass=5
     111npass=1
    112112ipass=1
    113113
     
    118118   echo passage $ipass >> atlas.sh.log
    119119   html=index_example_"$seas"_"$sim".html
    120    htmlopt=index_${proj}_"$seas"_"$sim".html
     120   htmlopt=index_"${proj}"_"$seas"_"$sim".html
    121121   rm -f $html
    122122
     
    129129   fi
    130130
    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
    133135
    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
    135138      echo ECHEC ATLAS : $html inexistant ou vide | tee >>  atlas.sh.log
    136139      echo ECHEC ATLAS : $html inexistant ou vide
    137140   else
    138       echo cp -f $html tmp$$.$passage
    139       cp -f $html tmp$$.$passage
     141      #echo cp -f $html tmp$$.$passage
     142      #cp -f $html tmp$$.$passage
    140143      pwd
    141       echo tmp$$.$passage
    142       echo LS  LS
    143       ls -lrt | tail
     144      #echo tmp$$.$passage
     145      #echo LS  LS
     146      #ls -lrt | tail
    144147# A ADAPTER en fonction de la machine
    145       sed -e "s:/modfs/ipslfs/dods/:/thredds/fileServer/IPSLFS/:g" tmp$$.$passage >| $htmlopt
     148      #sed -e "s:/modfs/ipslfs/dods/:/thredds/fileServer/IPSLFS/:g" tmp$$.$passage >| $htmlopt
    146149      \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/:'`
    148152      echo NOUVEL ATLAS DISPONIBLE SUR $PathHtml | tee >>  atlas.sh.log
    149153      echo NOUVEL ATLAS DISPONIBLE SUR $PathHtml
    150       echo $keys_strgv >> $OUT_D/atlas_OK
    151       echo ${sim}+${seas}+${proj}+$vars >> $OUT_D/atlas_OK
     154      #echo $keys_strgv >> $OUT_D/atlas_OK
     155      #echo ${sim}+${seas}+${proj}+$vars >> $OUT_D/atlas_OK
    152156   fi
    153157   (( ipass = $ipass + 1 ))
Note: See TracChangeset for help on using the changeset viewer.