IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2011, 10:08:44 AM (15 years ago)
Author:
eugene
Message:

merging updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/ppSub/src/ppSubLoop.c

    r30619 r31441  
    107107
    108108    // XXX if it exists, use the POS1, POS2 successs for the FWHMs
    109     if (!ppSubMatchPSFs(data)) {
     109    psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, PPSUB_RECIPE);
     110    bool noConvolve = psMetadataLookupBool(NULL, recipe, "NOCONVOLVE"); // Do not use convolved images.
     111    if (noConvolve) {
     112      psWarning("not matching PSFs because NOCONVOLVE is TRUE\n");
     113    } else {
     114      if (!ppSubMatchPSFs(data)) {
    110115        psError(psErrorCodeLast(), false, "Unable to match PSFs.");
    111116        success = false;
    112117        goto ESCAPE;
    113     }
     118      }
     119    }
     120
    114121
    115122    if (data->quality) {
     
    132139
    133140    // Close input files
     141    if (!noConvolve) {
    134142    if (!ppSubFilesIterateUp(config, PPSUB_FILES_INPUT)) {
    135143        psError(PPSUB_ERR_IO, false, "Unable to close input files.");
     
    137145        goto ESCAPE;
    138146    }
    139 
     147    }
    140148    if (!ppSubLowThreshold(data)) {
    141149        psError(psErrorCodeLast(), false, "Unable to threshold images.");
     
    157165    }
    158166
     167    if (!noConvolve) {
    159168    if (!data->quality && !ppSubMakePSF(data)) {
    160169        psError(psErrorCodeLast(), false, "Unable to generate PSF.");
     
    162171        goto ESCAPE;
    163172    }
    164 
     173    }
    165174    // Now we've got a PSF, blow away detections in case they're confused with real output detections
    166175    {
     
    187196    }
    188197    // dumpout(config, "diff.2a.fits");
    189 
     198    if (noConvolve) {
     199      if (!ppSubFilesIterateUp(config, PPSUB_FILES_INPUT)) {
     200        psError(PPSUB_ERR_IO, false, "Unable to close input files.");
     201        success = false;
     202        goto ESCAPE;
     203      }
     204    }
     205   
    190206    // Higher order background subtraction using psphot
    191207    if (!ppSubBackground(config)) {
Note: See TracChangeset for help on using the changeset viewer.