IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 17, 2020, 12:19:25 PM (6 years ago)
Author:
eugene
Message:

make a PSF if forced photometry is requested; plug a leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/gDiff.20200202/src/gDiffLoop.c

    r41413 r41414  
    2626    psAssert(config, "Require configuration.");
    2727
    28     HDUCHECK ("0a: start gDiffLoop");
    29 
    3028    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, GDIFF_RECIPE); // Recipe for ppSim
    3129    psAssert(recipe, "We checked this earlier, so it should be here.");
     
    4947    psTimerStart("GDIFF_MATCH");
    5048
    51     HDUCHECK ("0b: gDiffSetMasks");
    52 
    5349    if (!gDiffSetMasks(config)) {
    5450        psError(psErrorCodeLast(), false, "Unable to set masks.");
     
    5652    }
    5753
    58     HDUCHECK ("0b.1: gDiffInputDetections");
    5954    if (data->forcedPhot1) {
    6055        bool foundDetections = false;
     
    7065        }
    7166    }
    72     HDUCHECK ("0b.2: gDiffInputDetections");
     67
    7368    if (data->forcedPhot2) {
    7469        // XXX why is this only done for Phot2 and not Phot1 ??
     
    110105     **** This is the core of the PSF-matched image subtraction code.   ****/
    111106
    112     HDUCHECK ("1: before gDiffMatchPSFs");
    113 
    114107    if (!gDiffMatchPSFs(data)) {
    115108        psError(psErrorCodeLast(), false, "Unable to match PSFs.");
     
    152145    }
    153146
    154     HDUCHECK ("2: after gDiffLowThreshold");
    155 
    156147    // Set up subtraction files
    157148    if (!gDiffFilesIterateDown(config, GDIFF_FILES_SUB)) {
     
    166157        goto ESCAPE;
    167158    }
    168 
    169     HDUCHECK ("2a: gDiffMakePSF");
    170159
    171160    // the functions in this block are not critical for initial testing, so block them out for now
     
    186175    }
    187176
    188     HDUCHECK ("3: before gDiffReadoutSubtract");
    189 
    190177    if (!gDiffReadoutSubtract(config)) {
    191178        psError(psErrorCodeLast(), false, "Unable to subtract images.");
     
    208195    }
    209196   
    210     HDUCHECK ("4: before gDiffBackground");
    211 
    212197    // Higher order background subtraction using psphot
    213198    if (!gDiffBackground(config)) {
     
    218203    // dumpout(config, "diff.2b.fits");
    219204
    220     HDUCHECK ("5: before gDiffVarianceRescale");
    221 
    222205    // Perform Variance correction (rescale within a modest range)
    223206    if (!gDiffVarianceRescale(config, data)) {
     
    240223    }
    241224
    242     HDUCHECK ("6: before gDiffReadoutPhotometry");
    243 
    244225    if (!data->quality && !gDiffReadoutPhotometry("GDIFF.OUTPUT", data)) {
    245226        psError(psErrorCodeLast(), false, "Unable to perform photometry.");
     
    248229    }
    249230    // dumpout(config, "diff.3.fits");
    250 
    251     HDUCHECK ("7: before gDiffReadoutForcedPhot (1)");
    252231
    253232    // forced photometry for positive image 1
Note: See TracChangeset for help on using the changeset viewer.