Index: /trunk/mops/mops_ringsv3/populate_ringsv3_database.py
===================================================================
--- /trunk/mops/mops_ringsv3/populate_ringsv3_database.py	(revision 37503)
+++ /trunk/mops/mops_ringsv3/populate_ringsv3_database.py	(revision 37504)
@@ -1,3 +1,3 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.7
 
 import MySQLdb
@@ -42,14 +42,14 @@
     fits = pyfits.open(tesselation)
     table = fits[1].data
-    raProjectionCenterRadians = numpy.radians(table['crval1'])
+    raProjectionCenterRadians = numpy.radians(table.field('CRVAL1'))
     craProjectionCenter = numpy.cos(raProjectionCenterRadians)
     sraProjectionCenter = numpy.sin(raProjectionCenterRadians)
-    decProjectionCenterRadians = numpy.radians(table['crval2'])
+    decProjectionCenterRadians = numpy.radians(table.field('CRVAL2'))
     cdecProjectionCenter = numpy.cos(decProjectionCenterRadians)
     sdecProjectionCenter = numpy.sin(decProjectionCenterRadians)
-    data = [ table['name'], 
-             table['crval1'], craProjectionCenter, sraProjectionCenter, 
-             table['crval2'], cdecProjectionCenter, sdecProjectionCenter,
-             table['crpix1'], table['crpix2'],
+    data = [ table.field('NAME'), 
+             tablefield('CRVAL1'), craProjectionCenter, sraProjectionCenter, 
+             tablefield('CRVAL2'), cdecProjectionCenter, sdecProjectionCenter,
+             tablefield('CRPIX1'), tablefield('CRPIX2'),
              ]
     cursor = database.cursor()
