Changeset 17906 for trunk/DataCheck/Processing
- Timestamp:
- 05/27/14 22:16:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillRatescans.sh
r17597 r17906 13 13 # filling is done by macro and update is always done 14 14 15 # get last 3, 6 or 9 nights 16 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \ 17 # `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \ 18 # `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \ 19 ) 20 #dates=( `find -L $ziprawdata -mindepth 3 -type d | sort -r | sed "s/\${ziprawdata_for_sed}//g" | sed -e 's/^\///'` ) #all available dates in /loc_data/zipraw 15 # get dates 16 if [ "$certaindate" != "" ] 17 then 18 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'` 19 if [ "$checkstring" = "" ] 20 then 21 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)" 22 finish 23 fi 24 getdates $certaindate 25 else 26 # get all night 27 #getdates "all" 28 # get last 6 nights 29 getdates 6 30 fi 21 31 22 #dates=( "2013/01/31" )23 32 24 33 printprocesslog "INFO processing the following night(s): "${dates[@]}
Note:
See TracChangeset
for help on using the changeset viewer.