IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24921 for trunk/Ohana


Ignore:
Timestamp:
Jul 24, 2009, 2:45:59 PM (17 years ago)
Author:
bills
Message:

when parsing postage stamp request files run dvoImagesAtCoords to
narrow down the images that contain the center pixel. This prevents
queuing many many failing jobs

File:
1 edited

Legend:

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

    r24914 r24921  
    104104  for (i = 0; i < Nmatches; i++) {
    105105    int N = matches[i];
    106     fprintf (stdout, "%d (%lf, %lf)  :  %s\n", id, ra, dec, dbImages[N].name);
     106
     107    char *name;
     108    // output of lookup is filename[class_id.hdr] for astrometry files
     109    char *left_bracket = rindex(dbImages[N].name, '[');
     110    if (left_bracket) {
     111        name = strdup(left_bracket + 1);
     112        // zap the .hdr]
     113        char *dot = index(name, '.');
     114        if (dot) {
     115            *dot = 0;
     116        }
     117    } else {
     118        name = dbImages[N].name;
     119    }
     120    fprintf (stdout, "%d %lf %lf %s\n", id, ra, dec, name);
    107121  }
    108122 
Note: See TracChangeset for help on using the changeset viewer.