Changeset 17897


Ignore:
Timestamp:
05/26/14 17:13:07 (11 years ago)
Author:
Daniela Dorner
Message:
included loop over direction, removed obsolete lines, included limit for zd
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/DataCheck/SchedulingPlots.sh

    r17588 r17897  
    1111# script to be executed on gate, i.e. FACT++ there has to be up-to-date
    1212
    13 # create plots for past night
    14 direction="-"
    15 # create plots for future nights
    16 direction="+"
     13# create plots for past (-) / future (+) night
     14directions=( "-" "+" )
    1715
    1816# number of days to be treated
    1917numdays=1000
    2018
    21 
    22 plot=/home/fact/FACT++.in-run-fad-loss/makeplots
    2319plot=/home/fact/FACT++/makeplots
    24 root=/opt/root_svn/bin/thisroot.sh
    25 inpathdata=/home/fact/scheduling.plots
    26 inpathgate=/users/fact/scheduling.plots
    27 inpath=/users/fact/scheduling.plots
     20root=/opt/root_v5.34.10/bin/thisroot.sh
    2821
    2922# creating files for X days (if they don't exist yet)
    3023for (( i=0; i < $numdays ; i++))
    3124do
    32    outpath=/home/factwww/scheduling/`date --date="${direction}${i}days" +%Y/%m/%d`
    33    date=`date --date="${direction}${i}days" +%Y-%m-%d`
    34    echo -n $date
     25   for direction in ${directions[@]}
     26   do
     27      outpath=/home/factwww/scheduling/`date --date="${direction}${i}days" +%Y/%m/%d`
     28      date=`date --date="${direction}${i}days" +%Y-%m-%d`
     29      echo -n $date
    3530
    36    if ! [ -d $outpath ]
    37    then
    38       mkdir -p $outpath
    39    else
    40       echo $outpath" exists -> continue"
    41       continue
    42    fi
    43    #file1=$outpath/visibility$date.png
    44    #file2=$outpath/currents$date.png
    45    #file3=$outpath/legend$date.png
    46    #if ! [ -e $file1 ] || ! [ -e $file2 ] || ! [ -e $file3 ]
    47    #then
     31      if ! [ -d $outpath ]
     32      then
     33         mkdir -p $outpath
     34      else
     35         echo $outpath" exists -> continue"
     36         continue
     37      fi
    4838      echo -n ": creating files..."
    49       #ssh data "source $root ; cd $inpathdata ; $plot $date >/dev/null 2>&1"
    5039      cd $outpath
    51       $plot $date --max-current=90 >/dev/null 2>&1
    52       ##pstoimg -quiet $inpathgate/test1.eps -scale 1.5 -out $file1
    53       #pstoimg -quiet test1.eps -scale 1.5 -out $file1
    54       ##pstoimg -quiet $inpathgate/test2.eps -scale 1.5 -out $file2
    55       #pstoimg -quiet test2.eps -scale 1.5 -out $file2
    56       ##pstoimg -quiet $inpathgate/legend.eps -scale 0.8 -out $file3
    57       #pstoimg -quiet legend.eps -scale 0.8 -out $file3
    58       # with the version of 25.3.2013 the files seem to have new names:
     40      $plot $date --max-zd=75 --max-current=90 >/dev/null 2>&1
    5941      files=`ls *.eps`
    6042      for file in $files
     
    6850         pstoimg -quiet -scale $scale $file
    6951      done
    70    #fi
    71    echo ""
     52      echo ""
     53   done
    7254done
Note: See TracChangeset for help on using the changeset viewer.