Ignore:
Timestamp:
09/06/13 18:05:30 (11 years ago)
Author:
Daniela Dorner
Message:
usage of getdates function, cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/Step3.sh

    r17109 r17110  
    44printprocesslog "INFO starting $0 $1"
    55
    6 #root=/opt/root_svn/bin/thisroot.sh
    7 #source $root
    8 #factpath=/home/fact/FACT++.in-run-fad-loss
    96export LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH
    107
    11 mars=/home/fact/SW.automatic.processing/Mars.svn.2013.04.29
    128cd $mars
    139
     
    4137fi
    4238
    43 # get current hour
    44 hour=`date +%k`
    45 if [ $hour -le 7 ] || [ $hour -ge 19 ]
     39
     40# get dates
     41if [ "$certaindate" != "" ]
    4642then
    47    dates=( `date +%Y/%m/%d --date="-12hour"` )
     43   getdates $certaindate
    4844else
    49    # get last 3, 6 or 9 nights
    50    dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \
    51    #        `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \
    52    #        `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
    53            )
    54 fi
    55 #dates=( `find -L $auxdata -mindepth 3 -type d | sort -r | sed "s/\${auxdata_for_sed}//g" | sed -e 's/^\///'` ) #all available dates in /loc_data/zipraw
    56 
    57 #dates=( "2013/08/31" )
    58 
    59 # source info on daq in /loc_data/analysis/sources.txt
    60 #    (dump of DB scheduling.sources)
    61 
     45   # get all night
     46   #getdates "all"
     47   # get last 6 nights if hour between 7 and 19h, else only current night
     48   getdates 6 7 19
     49fi
    6250
    6351#echo ${dates[@]}
Note: See TracChangeset for help on using the changeset viewer.