Changeset 23763
- Timestamp:
- Apr 8, 2009, 5:11:55 PM (17 years ago)
- Location:
- trunk/ppSub/src
- Files:
-
- 2 edited
-
ppSubMakePSF.c (modified) (2 diffs)
-
ppSubReadoutInverse.c (modified) (1 diff)
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; -
trunk/ppSub/src/ppSubReadoutInverse.c
r23740 r23763 24 24 invRO->data_exists = invRO->parent->data_exists = invRO->parent->parent->data_exists = true; 25 25 26 pmConceptsCopyFPA(invRO->parent->parent->parent, outRO->parent->parent->parent, true, true); 27 26 28 return true; 27 29 }
Note:
See TracChangeset
for help on using the changeset viewer.
