Index: /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_catalog_setastrom.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_catalog_setastrom.c	(revision 38675)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_catalog_setastrom.c	(revision 38676)
@@ -42,8 +42,7 @@
     // XXX hardwire the list of chips to KH correct
     // some notes:
+    // XY17 surprisingly does not need correction
     // XY24 surprisingly does not need correction
-    // XY27 has poor astrometry with a weird correction for all mags
     // XY36 surprisingly does not need correction
-    // XY67 has poor astrometry with a weird correction for all mags
 
     int doKH = FALSE;
@@ -55,7 +54,7 @@
       case 15:
       case 16:
-      case 17:
       case 25:
       case 26:
+      case 27:
       case 34:
       case 35:
@@ -73,4 +72,5 @@
       case 62:
       case 63:
+      case 67:
       case 71:
       case 72:
@@ -100,5 +100,5 @@
       // this correction here (but ideally I would re-measure the KH trend from PV2 data and re-generate 
       // the splines
-      float MinstSB = Minst + 5.0*log10(M_SQRT2*fwhm_maj);
+      float MinstSB = Minst + 5.0*log10(fwhm_maj);
 
       // I should validate that the spline I'm using is SB corrected not Minst..
@@ -249,6 +249,6 @@
     // do not modify the original Xccd,Yccd values
     if (KH_FILE) {
-      measure[0].XoffKH = dX_KH / pltScale;
-      measure[0].YoffKH = dY_KH / pltScale;
+      measure[0].XoffKH = -dX_KH / pltScale;
+      measure[0].YoffKH = -dY_KH / pltScale;
     }
     if (KH_RESET) {
