Ignore:
Timestamp:
09/06/13 18:08:56 (11 years ago)
Author:
Daniela Dorner
Message:
implemented usage of getdates function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/CheckRawData.sh

    r15593 r17116  
    2020#skipmd5sum="yes" # do not fill md5 sums in any case #new default since 2012/06/05 when the checksum is available in heaser
    2121
    22 doupdate="yes" # update all entries
    23 doupdate="no" # fill only entries which are not yet existing #default
     22# option whether to fill all row or only those where information is missing
     23# $doupdate might be given as environment variable
     24if [ "$doupdate" = "" ]
     25then
     26   doupdate="yes" # update all entries (needed when new fields have been added)
     27   doupdate="no" # fill only entries which are not yet existing (default)
     28fi
     29
    2430
    2531root=/opt/root_svn/bin/thisroot.sh
     
    5561fi
    5662
    57 # get last 3, 6 or 9 nights
    58 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \
    59         `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \
    60 #        `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
    61         )
    62 #dates=( `find /loc_data/zipraw/ -mindepth 3 -type d | sort | sed -e 's/\/loc_data\/zipraw\///g'` ) #all available dates in /loc_data/zipraw
    63 #dates=( `find /loc_data/aux/ -mindepth 3 -type d | sort | sed -e 's/\/loc_data\/aux\///g'` ) #all available dates in /loc_data/zipraw
    64 
    65 #dates=( "2013/03/30" )
     63# get dates
     64if [ "$certaindate" != "" ]
     65then
     66   getdates $certaindate
     67else
     68   # get all night
     69   #getdates "all"
     70   # get last 6 nights if hour between 7 and 19h, else only current night
     71   getdates 6 7 19
     72fi
    6673
    6774# do check for rawfiles of these dates
Note: See TracChangeset for help on using the changeset viewer.