Changeset 30561
- Timestamp:
- Feb 10, 2011, 2:57:33 PM (15 years ago)
- Location:
- tags/ipp-20101215/psphot/src
- Files:
-
- 2 edited
-
psphotEfficiency.c (modified) (2 diffs, 1 prop)
-
psphotOutput.c (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/psphot/src/psphotEfficiency.c
- Property svn:mergeinfo set to
r29936 r30561 31 31 assert(covarFactor); 32 32 33 // apply the amplitude of kernel^2 to the covarFactor (why?) 34 // XXX this is simply undoing the scale scalculate in psImageCovarianceCalculateFactor 35 // if this is the right solution, make this extra calculation optional (and explain...) 33 36 psKernel *kernel = psImageSmoothKernel(smoothSigma, smoothNsigma); // Kernel used for smoothing 34 *covarFactor = psImageCovarianceCalculateFactor(kernel, ro->covariance); 37 double sum2 = 0.0; // Sum of kernel squared 38 for (int y = kernel->yMin; y <= kernel->yMax; y++) { 39 for (int x = kernel->xMin; x <= kernel->xMax; x++) { 40 sum2 += PS_SQR(kernel->kernel[y][x]); 41 } 42 } 43 *covarFactor = sum2 * psImageCovarianceCalculateFactor(kernel, ro->covariance); 35 44 psFree(kernel); 36 45 … … 70 79 float fluxLim = 2.0 * *norm * peakLim; // Limiting flux in original 71 80 *magLim = -2.5 * log10f(fluxLim); 81 psTrace("psphot.fake", 1, "Covar Factor: %f\n", *covarFactor); 72 82 psTrace("psphot.fake", 1, "Limiting peak: %f\n", peakLim); 73 83 psTrace("psphot.fake", 1, "Limiting flux: %f\n", fluxLim); -
tags/ipp-20101215/psphot/src/psphotOutput.c
- Property svn:mergeinfo set to
r29936 r30561 307 307 psMetadataItemSupplement (&status, header, analysis, "PSPHOT.CR.MAX.MAG"); 308 308 309 psMetadataItemSupplement (&status, header, analysis, "EFFECTIVE_AREA"); 310 psMetadataItemSupplement (&status, header, analysis, "SIGNIFICANCE_SCALE_FACTOR"); 311 309 312 // sky background model statistics 310 313 psMetadataItemSupplement (&status, header, analysis, "MSKY_MN");
Note:
See TracChangeset
for help on using the changeset viewer.
