IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30761


Ignore:
Timestamp:
Feb 25, 2011, 10:30:31 AM (15 years ago)
Author:
bills
Message:

when sanity checking dRA take declination into account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c

    r29938 r30761  
    219219      }
    220220      if (fabs(output[0].measure[Nmeas].dR) > 10*RADIUS) {
    221         fprintf (stderr, "error: %10.6f,%10.6f vs %10.6f,%10.6f (%f,%f vs %f,%f)\n",
    222                  output[0].average[n].R, output[0].average[n].D, Rin, Din,
    223                  X1[i], X2[Jmin], Y1[i], Y2[Jmin]);
    224         // XXX abort on this? -- this is a bad failure...
     221        // ok take declination into account and check again.
     222        double cosD = cos(RAD_DEG*Din);
     223        if (fabs(output[0].measure[Nmeas].dR*cosD) > 10*RADIUS) {
     224
     225            fprintf (stderr, "error: %10.6f,%10.6f vs %10.6f,%10.6f (%f,%f vs %f,%f)\n",
     226             output[0].average[n].R, output[0].average[n].D, Rin, Din,
     227             X1[i], X2[Jmin], Y1[i], Y2[Jmin]);
     228
     229            // XXX abort on this? -- this is a bad failure...
     230        }
    225231      }
    226232      input[0].found[N] = Nmeas;
Note: See TracChangeset for help on using the changeset viewer.