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/ppStackPhotometry.c

    r27004 r27158  
    7272        psErrorStackPrint(stderr, "Unable to perform photometry on image");
    7373        psWarning("Unable to perform photometry on image --- suspect bad data quality.");
    74         if (options->stats && psMetadataLookupS32(NULL, options->stats, "QUALITY") == 0) {
    75             psMetadataAddS32(options->stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE,
    76                              "Unable to perform photometry on image", psErrorCodeLast());
     74        if (options->quality == 0) {
     75            options->quality = psErrorCodeLast();
    7776        }
    7877        psErrorClear();
Note: See TracChangeset for help on using the changeset viewer.