[Swift-commit] r3013 - SwiftApps/SEE/trunk

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Jul 15 14:00:47 CDT 2009


Author: aespinosa
Date: 2009-07-15 14:00:46 -0500 (Wed, 15 Jul 2009)
New Revision: 3013

Modified:
   SwiftApps/SEE/trunk/run_ampl
Log:
Fixe for off-by-one shifting of RUS

Modified: SwiftApps/SEE/trunk/run_ampl
===================================================================
--- SwiftApps/SEE/trunk/run_ampl	2009-07-15 16:50:43 UTC (rev 3012)
+++ SwiftApps/SEE/trunk/run_ampl	2009-07-15 19:00:46 UTC (rev 3013)
@@ -28,9 +28,9 @@
 
   awk '
 
-  BEGIN { regnum=0; year=2004 }
+  BEGIN { regnum=0; year=2003 }
 
-  NF==1 { region=$1; regnum++; if ( regnum % 16 == 0 ) year++ }
+  NF==1 { region=$1; if ( regnum % 16 == 0 ) year++; regnum++}
   NF!=1 { print year, region, $1, $19 }
 
   '
@@ -52,9 +52,9 @@
 
   awk '
 
-  BEGIN { regnum=0; year=2004 }
+  BEGIN { regnum=0; year=2003 }
 
-  NF==1 { region=$1; regnum++; if ( regnum % 16 == 0 ) year++ }
+  NF==1 { region=$1; if ( regnum % 16 == 0 ) year++; regnum++ }
   # NF!=1 { print year, region, $0 }
   NF!=1 {
     printf("%s %s ", year, region);




More information about the Swift-commit mailing list