Changeset 17897
- Timestamp:
- 05/26/14 17:13:07 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/DataCheck/SchedulingPlots.sh
r17588 r17897 11 11 # script to be executed on gate, i.e. FACT++ there has to be up-to-date 12 12 13 # create plots for past night 14 direction="-" 15 # create plots for future nights 16 direction="+" 13 # create plots for past (-) / future (+) night 14 directions=( "-" "+" ) 17 15 18 16 # number of days to be treated 19 17 numdays=1000 20 18 21 22 plot=/home/fact/FACT++.in-run-fad-loss/makeplots23 19 plot=/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 20 root=/opt/root_v5.34.10/bin/thisroot.sh 28 21 29 22 # creating files for X days (if they don't exist yet) 30 23 for (( i=0; i < $numdays ; i++)) 31 24 do 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 35 30 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 48 38 echo -n ": creating files..." 49 #ssh data "source $root ; cd $inpathdata ; $plot $date >/dev/null 2>&1"50 39 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 59 41 files=`ls *.eps` 60 42 for file in $files … … 68 50 pstoimg -quiet -scale $scale $file 69 51 done 70 #fi71 echo ""52 echo "" 53 done 72 54 done
Note:
See TracChangeset
for help on using the changeset viewer.