Thursday, November 6, 2014

vsdb summary 2

1. for loop layers in script "run_scorecard.sh"

for stat in $statlist ; do            #Loop over cor, rms, bias
   for vnam in $vnamlist ; do  #Loop over HGT, T, U, V, WIND
      for reg in $reglist ; do       #Loop over G2, NH, SH
         for dd in $day ; do         #Loop over day 1,3,5,6,8,10

             file1=${scoredir}/score_${stat}_${namedaily}_${mdnamec1}_day${dd}.txt
             file2=${scoredir}/score_${stat}_${namedaily}_${mdnamec2}_day${dd}.txt
             file3=${scoredir}/score_${stat}_conflimit_${namedaily}_${mdnamec2}_day${dd}.txt
            # if any of three files missing, exit 88, no good!
            # I change it so it continues. 
             if [[ ! -s "$file1" || ! -s "$file2" || ! -s "$file3" ]] ; then
                   #dxu  exit 88
                   continue         # dxu: skip that day, and move on to the next ....
              fi
          done
      done
   done
done

2. Two ways to run script "run_scorecard.sh" 
 

No comments:

Post a Comment