IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9474


Ignore:
Timestamp:
Oct 10, 2006, 2:11:55 PM (20 years ago)
Author:
eugene
Message:

fixed sign error in pole-test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro2/src/greference2.c

    r8513 r9474  
    113113  status = RD_to_XY (&X, &Y, 0.0, 90.0, &Target[0].coords);
    114114  if (status) {
    115       if (fabs(X - NX*0.5) < (NFIELD + 0.5)*NX) goto not_north;
    116       if (fabs(Y - NY*0.5) < (NFIELD + 0.5)*NY) goto not_north;
     115      if (fabs(X - NX*0.5) > (NFIELD + 0.5)*NX) goto not_north;
     116      if (fabs(Y - NY*0.5) > (NFIELD + 0.5)*NY) goto not_north;
    117117      catstats[0].DEC[1] = 90.0;
    118118  }
     
    121121  status = RD_to_XY (&X, &Y, 0.0, -90.0, &Target[0].coords);
    122122  if (status) {
    123       if (fabs(X - NX*0.5) < (NFIELD + 0.5)*NX) goto not_south;
    124       if (fabs(Y - NY*0.5) < (NFIELD + 0.5)*NY) goto not_south;
     123      if (fabs(X - NX*0.5) > (NFIELD + 0.5)*NX) goto not_south;
     124      if (fabs(Y - NY*0.5) > (NFIELD + 0.5)*NY) goto not_south;
    125125      catstats[0].DEC[0] = -90.0;
    126126  }
Note: See TracChangeset for help on using the changeset viewer.