IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2009, 5:11:55 PM (17 years ago)
Author:
Paul Price
Message:

Copy concepts to inverse file, so that photcode etc can be set.

File:
1 edited

Legend:

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

    r23758 r23763  
    4141    }
    4242
    43     psMetadata *psphotRecipe = psMetadataLookupMetadata(NULL, config->recipes, PSPHOT_RECIPE);// psphot recipe
    44     psAssert(recipe, "We checked this earlier, so it should be here.");
    45 
    4643    bool reverse = psMetadataLookupBool(NULL, config->arguments, "REVERSE"); // Reverse sense of subtraction?
    4744
     
    8279    }
    8380
    84     // Record the FWHM in the output header
    85     pmReadout *outRO = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT"); // Output readout
    86     psFree(view);
    87     pmHDU *hdu = pmHDUFromCell(outRO->parent); // HDU with header
    88     psMetadataItemSupplement(hdu->header, psphotRecipe, "FWHM_MAJ");
    89     psMetadataItemSupplement(hdu->header, psphotRecipe, "FWHM_MIN");
    90 
    9181    // Get rid of the generated header; it will be regenerated by the real photometry run
    9282    psMetadataRemoveKey(photRO->analysis, "PSPHOT.HEADER");
    9383
    94     data->psf = psMemIncrRefCounter(psMetadataLookupPtr(NULL, photRO->parent->parent->analysis,
    95                                                         "PSPHOT.PSF"));
     84    if (!data->quality) {
     85        data->psf = psMemIncrRefCounter(psMetadataLookupPtr(NULL, photRO->parent->parent->analysis,
     86                                                            "PSPHOT.PSF"));
     87    }
     88
     89    psFree(view);
    9690
    9791    return true;
Note: See TracChangeset for help on using the changeset viewer.