IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2010, 12:05:07 PM (16 years ago)
Author:
eugene
Message:

optimizations for dvomerge and relastro; complete checks of db I/O success; fix overloaded image flags

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

    • Property svn:mergeinfo deleted
  • trunk/Ohana/src/uniphot/src/find_image_sgroups.c

    r27435 r29001  
    1313  imlink = *Imlink;
    1414  image = gfits_table_get_Image (&db[0].ftable, &Nimage, &db[0].swapped);
     15  if (!image) {
     16      fprintf (stderr, "ERROR: failed to read images\n");
     17      exit (2);
     18  }
    1519
    1620  coords.crpix1 = coords.crpix2 = 0.0;
     
    2832  for (i = 0; i < Nimage; i++) {
    2933    if (imlink[i].sgroup != NULL) continue;
    30     if (image[i].flags & ID_IMAGE_NOCAL) continue;
     34    if (image[i].flags & ID_IMAGE_PHOTOM_NOCAL) continue;
    3135
    3236    /* new sgroup, set ref coords */
     
    5357
    5458    for (j = 0; j < Nimage; j++) {
    55       if (image[j].flags & ID_IMAGE_NOCAL) continue;
     59      if (image[j].flags & ID_IMAGE_PHOTOM_NOCAL) continue;
    5660      if (imlink[j].sgroup != NULL) continue;
    5761
Note: See TracChangeset for help on using the changeset viewer.