IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 5, 2010, 9:45:46 PM (15 years ago)
Author:
eugene
Message:

add forced photometry of positive sources; generate a background model for PPSUB.OUTPUT even if PSPHOT.BACKMDL exists (is certain to be for the wrong image)

File:
1 edited

Legend:

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

    r29003 r29937  
    3131
    3232    if (!data->photometry) {
    33         return true;
    34     }
    35 
    36     // Look up recipe values
    37     psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim
    38     psAssert(recipe, "We checked this earlier, so it should be here.");
    39 
    40     if (!psMetadataLookupBool(NULL, recipe, "PHOTOMETRY")) {
    41         pmFPAfileDropInternal(config->files, "PSPHOT.BACKMDL");
    42         pmFPAfileDropInternal(config->files, "PSPHOT.BACKMDL.STDEV");
    4333        return true;
    4434    }
     
    8171    }
    8272
    83     if (!psphotReadoutMinimal(config, view)) {
     73    if (!psphotReadoutMinimal(config, view, "PSPHOT.INPUT")) {
    8474        // This is likely a data quality issue
    8575        // XXX Split into multiple cases using error codes?
     
    9080
    9181    // If no sources were found, there's no error,  but we want to trigger 'bad quality'
     82    psWarning("no sources found: why is this being set to bad quality??");
    9283    pmDetections *detections = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.DETECTIONS"); // Sources
    9384    if (!detections) {
     
    136127        }
    137128    }
    138 
    139     pmFPAfileDropInternal(config->files, "PSPHOT.BACKMDL");
    140     pmFPAfileDropInternal(config->files, "PSPHOT.BACKMDL.STDEV");
    141129
    142130    return true;
Note: See TracChangeset for help on using the changeset viewer.