Index: /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py
===================================================================
--- /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py	(revision 19799)
+++ /branches/sj_ippTests_branch_20080929/ippTests/compIPPphoto.py	(revision 19800)
@@ -140,9 +140,10 @@
     h = table.header
     table_data = table.data
-    run = h['RUN']
-    rerun = h['RERUN']
-    camcol = h['CAMCOL']
-    field = h['FIELD']
-    filtnam = h['FILTER']
+    # Header names that are going to be copied to output table as
+    # "reference columns"
+    copyfields_list = ['RUN','RERUN','CAMCOL','FIELD','FILTER']
+    outhash = {}
+    for f in copyfields_list:
+        outhash[f] = h[f]    
 
     # These are just the columns; need to get a slice with the correct array index later
@@ -157,5 +158,4 @@
         }
 
-    outhash = {'RUN':run,'RERUN':rerun,'CAMCOL':camcol,'FIELD':field,'FILTER':filtnam}
     ismag = re.compile('mag')
     iscounts = re.compile('counts')
