Changeset 12980 for trunk


Ignore:
Timestamp:
03/01/12 11:41:21 (13 years ago)
Author:
Daniela Dorner
Message:
unified method to get dates to be processed
Location:
trunk/DataCheck
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/CheckRawData.sh

    r12972 r12980  
    5858
    5959# get last 3 nights
    60 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` )
     60dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` )
    6161#dates=( `find /loc_data/zipraw/ -mindepth 3 -type d | sort | sed -e 's/\/loc_data\/zipraw\///g'` ) #all available dates in /loc_data/zipraw
    62 #dates=( "2012/02/19" )
    6362
    6463# do check for rawfiles of these dates
  • trunk/DataCheck/FillAuxData.sh

    r12979 r12980  
    9393
    9494
    95 # get last 2 nights
    96 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` )
     95# get last 3 nights
     96dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` )
    9797#dates=( `find $ziprawdata -mindepth 3 -type d | sort | sed "s/\${ziprawdata_for_sed}//g" | sed -e 's/^\///'` ) #all available dates in /loc_data/zipraw
    98 #echo ${dates[@]}
    99 #dates=( "2012/02/21" "2012/02/20" "2012/02/19" "2012/02/18" )
    10098printprocesslog "INFO processing the following night(s): "${dates[@]}
    10199echo  `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1
  • trunk/DataCheck/RsyncAux.sh

    r12971 r12980  
    3232
    3333# get last 3 nights
    34 dates=( `date +%Y/%m/%d` `date +%Y/%m/%d --date="-1day"` `date +%Y/%m/%d --date="-2day"` `date +%Y/%m/%d --date="-3day"` )
     34dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` )
    3535
    3636# do rsync for rawfiles of these dates
  • trunk/DataCheck/RsyncRaw.sh

    r12979 r12980  
    3131
    3232# get last 3 nights
    33 dates=( `date +%Y/%m/%d` `date +%Y/%m/%d --date="-1day"` `date +%Y/%m/%d --date="-2day"` `date +%Y/%m/%d --date="-3day"` )
     33dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` )
    3434
    3535# do rsync for rawfiles of these dates
  • trunk/DataCheck/ZipRawData.sh

    r12970 r12980  
    1111
    1212# get last 3 nights
    13 dates=( `date +%Y/%m/%d` `date +%Y/%m/%d --date="-1day"` `date +%Y/%m/%d --date="-2day"` `date +%Y/%m/%d --date="-3day"` )
     13dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` )
    1414
    1515# time rawfile is untouched before further processing (i.e. adding checksum and zipping)
Note: See TracChangeset for help on using the changeset viewer.