IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25106


Ignore:
Timestamp:
Aug 18, 2009, 10:08:42 AM (17 years ago)
Author:
bills
Message:

in dvoImagesAtCoords check return status from when transforming point to
image coordinates. If false skip the image. It's anti-podal or something.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/src/MatchCoords.c

    r24914 r25106  
    4040    // Xi[4] = Xi[0]; Yi[4] = Yi[0];
    4141
    42 
    4342    ymin = xmin = +FLT_MAX;
    4443    ymax = xmax = -FLT_MAX;
     
    5251    // transform input point to image coords
    5352    double x, y;
    54     RD_to_XY(&x, &y, ra, dec, &dbImages[i].coords);
     53    int status = RD_to_XY(&x, &y, ra, dec, &dbImages[i].coords);
     54
     55    if (!status) {
     56        // avoid matching antipodal skycells
     57        continue;
     58    }
    5559
    5660    if ((x >= xmin && x <= xmax) && (y >= ymin && y <= ymax)) {
Note: See TracChangeset for help on using the changeset viewer.