IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2011, 10:48:28 AM (14 years ago)
Author:
eugene
Message:

ppSubMakePSF needs to copy the detections from the input cmf file source to the detection image (minuend) if no convolution is selected (if convolution is selected, this operation takes place in ppSubMatchPSFs before the psf match is done)

File:
1 edited

Legend:

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

    r31672 r32676  
    201201bool ppSubMatchPSFs(ppSubData *data)
    202202{
     203    bool mdok = false;
     204
    203205    psAssert(data, "Require processing data");
    204206    pmConfig *config = data->config;    // Configuration
     
    208210    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim
    209211    psAssert(recipe, "We checked this earlier, so it should be here.");
     212
     213    bool noConvolve = psMetadataLookupBool(&mdok, recipe, "NOCONVOLVE"); // Do not use convolved images.
     214    if (noConvolve) {
     215        psWarning("not matching PSFs because NOCONVOLVE is TRUE\n");
     216        return true;
     217    }
    210218
    211219    pmFPAview *view = ppSubViewReadout(); // View to readout
     
    228236        psFree(refConv);
    229237    }
    230 
    231     bool mdok;                          // Status of MD lookup
    232238
    233239    // Load pre-calculated kernel, if available
Note: See TracChangeset for help on using the changeset viewer.