Changeset 7318


Ignore:
Timestamp:
08/26/05 07:04:47 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/dowebplots

    r7316 r7318  
    7575   file=`basename $rootfile`
    7676   base=`echo $file | sed -e 's/.root$//g'`
    77    echo "file $file" >> $scriptlog 2>&1
    78    echo "path $path" >> $scriptlog 2>&1
    79    echo "base $base" >> $scriptlog 2>&1
     77   echo "rootfile: $file" >> $scriptlog 2>&1
     78   echo "path    : $path" >> $scriptlog 2>&1
     79   echo "base    : $base" >> $scriptlog 2>&1
    8080   
    81    if ls $path/$base-tab*.gif  >> $scriptlog 2>&1
    82    then
    83       continue
    84    fi
     81#   if ls $path/$base-tab*.gif  >> $scriptlog 2>&1
     82#   then
     83#      continue
     84#   fi
    8585   
    86    tabfile=$path/$base-tab
    87    daterootfile=`date +%Y%m%d -r $rootfile` >> $scriptlog 2>&1
    88    dategiffile=`date +%Y%m%d -r $tabfile1.gif` >> $scriptlog 2>&1
    89    if [ "$dategiffile" = "" ]
    90    then
    91       dategiffile=50000000
    92    fi
    93 #   now=`date +%Y%m%d`
    94 
    95    echo "date of rootfile: $daterootfile" >> $scriptlog 2>&1
    96    echo "date of giffile: $dategiffile"  >> $scriptlog 2>&1
    97    
    98    if [ "$dategiffile" -lt "$daterootfile" ] >> $scriptlog 2>&1
    99    then
    100       continue
    101    fi
    102    
    103    echo "produce plots..." >> $scriptlog 2>&1
    10486   X=0
    10587   while [ "$X" -le "50" ] >> $scriptlog 2>&1
     
    10789      X=$((X+1))
    10890      echo "$X. step" >> $scriptlog 2>&1
     91
     92      tabfile=$path/$base-tab$X
     93      daterootfile=`date +%Y%m%d -r $rootfile` >> $scriptlog 2>&1
     94      dategiffile=`date +%Y%m%d -r $tabfile.gif` >> $scriptlog 2>&1
     95      if [ "$dategiffile" = "" ]
     96      then
     97         echo "date of gif-file is empty -> the file $tabfile.gif doesn't exist" >> $scriptlog 2>&1
     98         echo " -> setting date to 0 and producing gif-file..." >> $scriptlog 2>&1
     99         dategiffile=0
     100      fi
     101
     102      echo "checking date..."  >> $scriptlog 2>&1
     103      echo "date of rootfile: $daterootfile" >> $scriptlog 2>&1
     104      echo "date of giffile:  $dategiffile"  >> $scriptlog 2>&1
     105
     106      if [ "$dategiffile" -gt "$daterootfile" ] >> $scriptlog 2>&1
     107      then
     108         echo "gif-file is older than root-file -> continue " >> $scriptlog 2>&1
     109         continue
     110      fi
     111
     112      echo "producing ps-file with plots for tab $X..." >> $scriptlog 2>&1
    109113      ./showplot -b --save-as-ps=$tabfile$X --tab=$X $rootfile >> $scriptlog 2>&1
    110114      if ! ls $tabfile$X.ps >> $scriptlog 2>&1
    111115      then
     116         echo "tab $X doen't exist -> break" >> $scriptlog 2>&1
    112117         break
    113118      fi
     119      echo "converting plots to gif for tab $X..." >> $scriptlog 2>&1
    114120      convert -rotate 90 $tabfile$X.ps $tabfile$X.gif >> $scriptlog 2>&1
    115121   done
Note: See TracChangeset for help on using the changeset viewer.