IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2009, 11:55:52 AM (17 years ago)
Author:
Paul Price
Message:

Removing warpSkyfile.ignored from database, in favour of using the quality flags. This means that we can ignore skycells on the basis of usefulness (whether we can measure the PSF) rather than an arbitrary cut of 10% lit pixels (which pixels may or may not be useful).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/pswarp/src/pswarpLoop.c

    r23597 r23677  
    274274    }
    275275
     276    if (!output->data_exists) {
     277        psWarning("No overlap between input and skycell.");
     278        if (stats) {
     279            psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE,
     280                             "No overlap between input and skycell", PSWARP_ERR_NO_OVERLAP);
     281        }
     282        psphotFilesActivate(config, false);
     283        psFree(cells);
     284        psFree(view);
     285        return true;
     286    }
     287
    276288    pmCell *outCell = output->parent;   ///< Output cell
    277289    pmChip *outChip = outCell->parent;  ///< Output chip
    278290    pmFPA *outFPA = outChip->parent;    ///< Output FP
    279291
    280     if (!pswarpPixelFraction(output, stats, config)) {
    281         // Don't write output images, and don't bother about anything else
    282         output->data_exists = outCell->data_exists = outChip->data_exists = false;
     292    if (pswarpPixelFraction(output, stats, config)) {
     293        psError(PS_ERR_UNKNOWN, false, "Unable to calculate pixel regions.");
    283294        psFree(cells);
    284295        psFree(view);
    285         goto COMPLETED;
     296        return false;
    286297    }
    287298
     
    457468    // Now done with the skycell side of things
    458469
    459     COMPLETED:
    460470    // Write out summary statistics
    461471    if (stats) {
Note: See TracChangeset for help on using the changeset viewer.