Changeset 23763 for trunk/ppSub/src/ppSubMakePSF.c
- Timestamp:
- Apr 8, 2009, 5:11:55 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubMakePSF.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubMakePSF.c
r23758 r23763 41 41 } 42 42 43 psMetadata *psphotRecipe = psMetadataLookupMetadata(NULL, config->recipes, PSPHOT_RECIPE);// psphot recipe44 psAssert(recipe, "We checked this earlier, so it should be here.");45 46 43 bool reverse = psMetadataLookupBool(NULL, config->arguments, "REVERSE"); // Reverse sense of subtraction? 47 44 … … 82 79 } 83 80 84 // Record the FWHM in the output header85 pmReadout *outRO = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT"); // Output readout86 psFree(view);87 pmHDU *hdu = pmHDUFromCell(outRO->parent); // HDU with header88 psMetadataItemSupplement(hdu->header, psphotRecipe, "FWHM_MAJ");89 psMetadataItemSupplement(hdu->header, psphotRecipe, "FWHM_MIN");90 91 81 // Get rid of the generated header; it will be regenerated by the real photometry run 92 82 psMetadataRemoveKey(photRO->analysis, "PSPHOT.HEADER"); 93 83 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); 96 90 97 91 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
