Changeset 34136 for trunk/psphot/src/psphotStackMatchPSFs.c
- Timestamp:
- Jul 10, 2012, 3:44:12 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotStackMatchPSFs.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotStackMatchPSFs.c
r32868 r34136 87 87 } 88 88 89 // copy the header data from Src to Out90 // pmHDU *hduSrc = pmHDUFromReadout(readoutSrc);91 // psAssert (hduSrc, "input missing hdu?");92 93 94 89 // set NAN pixels to 'SAT' 95 90 psImageMaskType maskSat = pmConfigMaskGet("SAT", config); … … 116 111 // save the output fwhm values in the readout->analysis. we may have / will have multiple output PSF sizes, 117 112 // so we save this in a vector. if the vector is not yet defined, create it 113 // Skip this if the readout deconvolution fraction was over the limit. 118 114 // NOTE: fwhmValues as defined here has 1 + nMatched PSF : 0 == unmatched 119 115 psVector *fwhmValues = psVectorAllocEmpty(10, PS_TYPE_F32); 120 116 psVectorAppend(fwhmValues, NAN); // XXX this corresponds to the unmatched image set 121 for (int i = 0; i < options->targetSeeing->n; i++) { 122 psVectorAppend(fwhmValues, options->targetSeeing->data.F32[i]); 117 118 bool overLimit = psMetadataLookupBool(NULL, readoutOut->analysis, "DECONV.OVERLIMIT"); 119 if (!overLimit) { 120 for (int i = 0; i < options->targetSeeing->n; i++) { 121 psVectorAppend(fwhmValues, options->targetSeeing->data.F32[i]); 122 } 123 123 } 124 124 psMetadataAddVector(readoutSrc->analysis, PS_LIST_TAIL, "STACK.PSF.FWHM.VALUES", PS_META_REPLACE, "PSF sizes", fwhmValues);
Note:
See TracChangeset
for help on using the changeset viewer.
