IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2010, 4:17:23 PM (16 years ago)
Author:
eugene
Message:

handle unmatched detections and images; add iteration over chips and objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relastro.20100326/src/MosaicOps.c

    r27478 r27497  
    146146
    147147    Nmos = getMosaicByTimes (start, stop, startMos, stopMos, indexMos);
    148     if (Nmos == -1) continue;
     148    if (Nmos == -1) {
     149      fprintf (stderr, "cannot match mosaic for %s\n", image[i].name);
     150      continue;
     151    }
    149152
    150153    // mosaic corresponding to this image
     
    185188    // this function does the reverse-lookup for the mosaic corresponding to this image
    186189    new = getImageRaw (catalog, Ncatalog, im, &Nnew, MODE_MOSAIC);
     190    if (!new) {
     191      fprintf (stderr, "inconsistent: missing mosaic for image already associated with a mosaic? (1)\n");
     192      abort();
     193    }
    187194   
    188195    // merge new and raw
     
    217224    // this function does the reverse-lookup for the mosaic corresponding to this image
    218225    new = getImageRef (catalog, Ncatalog, im, &Nnew, MODE_MOSAIC);
     226    if (!new) {
     227      fprintf (stderr, "inconsistent: missing mosaic for image already associated with a mosaic? (2)\n");
     228      abort();
     229    }
    219230   
    220231    // merge new and ref
Note: See TracChangeset for help on using the changeset viewer.