IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24932


Ignore:
Timestamp:
Jul 28, 2009, 1:35:06 PM (17 years ago)
Author:
Paul Price
Message:

If no sources were found, there's no error, but we want to trigger 'bad quality'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadoutPhotometry.c

    r24273 r24932  
    9595    }
    9696
     97    // If no sources were found, there's no error,  but we want to trigger 'bad quality'
     98    psArray *sources = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.SOURCES"); // Sources
     99    if (!sources) {
     100        ppSubDataQuality(data, PSPHOT_ERR_DATA, PPSUB_FILES_PHOT_SUB | PPSUB_FILES_PHOT_INV);
     101    }
     102
    97103    if (data->stats) {
    98         psArray *sources = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.SOURCES"); // Sources
    99104        bool mdok;
    100105        int numSources = psMetadataLookupS32(&mdok, data->stats, "NUM_SOURCES"); // Number of sources
Note: See TracChangeset for help on using the changeset viewer.