Changeset 17907


Ignore:
Timestamp:
05/27/14 22:16:46 (10 years ago)
Author:
Daniela Dorner
Message:
included and/or improved check of variable certaindate
Location:
trunk/DataCheck/Processing
Files:
12 edited

Legend:

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

    r17116 r17907  
    6464if [ "$certaindate" != "" ]
    6565then
     66   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     67   if [ "$checkstring" = "" ]
     68   then
     69      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     70      finish
     71   fi
    6672   getdates $certaindate
    6773else
  • trunk/DataCheck/Processing/FillAuxCamHum.sh

    r17610 r17907  
    2828if [ "$certaindate" != "" ]
    2929then
     30   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     31   if [ "$checkstring" = "" ]
     32   then
     33      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     34      finish
     35   fi
    3036   getdates $certaindate
    3137else
  • trunk/DataCheck/Processing/FillAuxContTemp.sh

    r17597 r17907  
    2828if [ "$certaindate" != "" ]
    2929then
     30   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     31   if [ "$checkstring" = "" ]
     32   then
     33      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     34      finish
     35   fi
    3036   getdates $certaindate
    3137else
  • trunk/DataCheck/Processing/FillAuxCtrDev.sh

    r17597 r17907  
    2828if [ "$certaindate" != "" ]
    2929then
     30   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     31   if [ "$checkstring" = "" ]
     32   then
     33      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     34      finish
     35   fi
    3036   getdates $certaindate
    3137else
  • trunk/DataCheck/Processing/FillAuxCurrents.sh

    r17597 r17907  
    2828if [ "$certaindate" != "" ]
    2929then
     30   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     31   if [ "$checkstring" = "" ]
     32   then
     33      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     34      finish
     35   fi
    3036   getdates $certaindate
    3137else
  • trunk/DataCheck/Processing/FillAuxData.sh

    r17896 r17907  
    9999if [ "$certaindate" != "" ]
    100100then
     101   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     102   if [ "$checkstring" = "" ]
     103   then
     104      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     105      finish
     106   fi
    101107   getdates $certaindate
    102108else
  • trunk/DataCheck/Processing/FillAuxTemp.sh

    r17597 r17907  
    2828if [ "$certaindate" != "" ]
    2929then
     30   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     31   if [ "$checkstring" = "" ]
     32   then
     33      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     34      finish
     35   fi
    3036   getdates $certaindate
    3137else
  • trunk/DataCheck/Processing/FillAuxThresholds.sh

    r17597 r17907  
    2929if [ "$certaindate" != "" ]
    3030then
     31   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     32   if [ "$checkstring" = "" ]
     33   then
     34      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     35      finish
     36   fi
    3137   getdates $certaindate
    3238else
  • trunk/DataCheck/Processing/FillDrsTemp.sh

    r17598 r17907  
    2828if [ "$certaindate" != "" ]
    2929then
     30   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     31   if [ "$checkstring" = "" ]
     32   then
     33      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     34      finish
     35   fi
    3036   getdates $certaindate
    3137else
  • trunk/DataCheck/Processing/FillEffectiveOn.sh

    r17597 r17907  
    2828if [ "$certaindate" != "" ]
    2929then
     30   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     31   if [ "$checkstring" = "" ]
     32   then
     33      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     34      finish
     35   fi
    3036   getdates $certaindate
    3137else
  • trunk/DataCheck/Processing/FillMoonInfo.sh

    r17597 r17907  
    1919if [ "$certaindate" != "" ]
    2020then
     21   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     22   if [ "$checkstring" = "" ]
     23   then
     24      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     25      finish
     26   fi
    2127   getdates $certaindate
    2228else
  • trunk/DataCheck/Processing/FillNumEvts.sh

    r17115 r17907  
    1313if [ "$certaindate" != "" ]
    1414then
     15   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     16   if [ "$checkstring" = "" ]
     17   then
     18      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     19      finish
     20   fi
    1521   getdates $certaindate
    1622else
Note: See TracChangeset for help on using the changeset viewer.