IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2010, 1:38:58 PM (16 years ago)
Author:
Paul Price
Message:

Catch case where no input has any sources, so photometry can't be matched; then treat as bad data quality. Reworked how the bad data quality flag gets raised (since there's more than one source now) --- it's carried in the ppStackOptions, and then put in the statistics file at the end.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackSources.c

    r27004 r27158  
    127127    float airmassTerm = NAN;            // Airmass term
    128128    float sumExpTime = 0.0;             // Sum of the exposure time
     129    int numGoodImages = 0;              // Number of good images
    129130    for (int i = 0; i < num; i++) {
     131        psArray *sources = sourceLists->data[i]; // Source list
     132        psAssert(sources, "Don't have source list %d", i);
     133        if (sources->n == 0) {
     134            options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i] |= PPSTACK_MASK_CAL;
     135            continue;
     136        }
     137        numGoodImages++;
     138
    130139        pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i); // File of interest
    131140        pmCell *cell = pmFPAviewThisCell(view, file->fpa); // Cell of interest
     
    145154        psFree(fake);
    146155#endif
    147 
    148156
    149157        float exptime = psMetadataLookupF32(NULL, cell->concepts, "CELL.EXPOSURE"); // Exposure time
Note: See TracChangeset for help on using the changeset viewer.