IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2009, 4:46:10 PM (17 years ago)
Author:
Paul Price
Message:

Get QUALITY (error code from non-fatal failure, e.g., psphot) into the output statistics and parse for flag to give to ippTools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppStack/src/ppStackPhotometry.c

    r23462 r23580  
    6969
    7070    if (!psphotReadoutKnownSources(config, photView, inSources)) {
    71         // Clear the error, so that the output files are written.
    72         psError(PS_ERR_UNKNOWN, false, "Unable to perform photometry on stacked image.");
    73         psFree(photView);
    74         return false;
     71        // This is likely a data quality issue
     72        // XXX Split into multiple cases using error codes?
     73        psErrorStackPrint("Unable to perform photometry on image");
     74        psWarning("Unable to perform photometry on image --- suspect bad data quality.");
     75        if (stats && psMetadataLookupS32(NULL, stats, "QUALITY") == 0) {
     76            psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE,
     77                             "Unable to perform photometry on image", psErrorCodeLast());
     78        }
     79        psErrorClear();
     80        psphotFilesActivate(config, false);
    7581    }
    7682
Note: See TracChangeset for help on using the changeset viewer.