Index: /trunk/Ohana/src/gastro2/src/greference2.c
===================================================================
--- /trunk/Ohana/src/gastro2/src/greference2.c	(revision 9473)
+++ /trunk/Ohana/src/gastro2/src/greference2.c	(revision 9474)
@@ -113,6 +113,6 @@
   status = RD_to_XY (&X, &Y, 0.0, 90.0, &Target[0].coords);
   if (status) {
-      if (fabs(X - NX*0.5) < (NFIELD + 0.5)*NX) goto not_north;
-      if (fabs(Y - NY*0.5) < (NFIELD + 0.5)*NY) goto not_north;
+      if (fabs(X - NX*0.5) > (NFIELD + 0.5)*NX) goto not_north;
+      if (fabs(Y - NY*0.5) > (NFIELD + 0.5)*NY) goto not_north;
       catstats[0].DEC[1] = 90.0;
   }
@@ -121,6 +121,6 @@
   status = RD_to_XY (&X, &Y, 0.0, -90.0, &Target[0].coords);
   if (status) {
-      if (fabs(X - NX*0.5) < (NFIELD + 0.5)*NX) goto not_south;
-      if (fabs(Y - NY*0.5) < (NFIELD + 0.5)*NY) goto not_south;
+      if (fabs(X - NX*0.5) > (NFIELD + 0.5)*NX) goto not_south;
+      if (fabs(Y - NY*0.5) > (NFIELD + 0.5)*NY) goto not_south;
       catstats[0].DEC[0] = -90.0;
   }
