Changeset 28797
- Timestamp:
- Jul 30, 2010, 9:39:15 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100621/psphot
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/psphotApResid.c (modified) (1 diff)
-
src/psphotSignificanceImage.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/psphot
- Property svn:mergeinfo changed
/branches/pap/psphot merged: 28484-28485,28534-28535
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20100621/psphot/src/psphotApResid.c
r28692 r28797 328 328 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "DAPMIFIT", PS_DATA_F32 | PS_META_REPLACE, "ap residual scatter", psf->dApResid); 329 329 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "NAPMIFIT", PS_DATA_S32 | PS_META_REPLACE, "number of apresid stars", psf->nApResid); 330 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "APLOSS", PS_DATA_F32 | PS_META_REPLACE, "aperture loss (mag)", psf->growth ->apLoss);330 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "APLOSS", PS_DATA_F32 | PS_META_REPLACE, "aperture loss (mag)", psf->growth ? psf->growth->apLoss : NAN); 331 331 332 332 psLogMsg ("psphot.apresid", PS_LOG_DETAIL, "aperture residual: %f +/- %f\n", psf->ApResid, psf->dApResid); -
branches/eam_branches/ipp-20100621/psphot/src/psphotSignificanceImage.c
r26894 r28797 76 76 // Calculate correction factor for the covariance produced by the (potentially multiple) smoothing 77 77 psKernel *kernel = psImageSmoothKernel(SIGMA_SMTH, NSIGMA_SMTH); // Kernel used for smoothing 78 float factor = 1.0 / psImageCovarianceCalculateFactor(kernel, readout->covariance); 78 double sum2 = 0.0; // Sum of kernel squared 79 for (int y = kernel->yMin; y <= kernel->yMax; y++) { 80 for (int x = kernel->xMin; x <= kernel->xMax; x++) { 81 sum2 += PS_SQR(kernel->kernel[y][x]); 82 } 83 } 84 float factor = 1.0 / (sum2 * psImageCovarianceCalculateFactor(kernel, readout->covariance)); 79 85 psFree(kernel); 80 86
Note:
See TracChangeset
for help on using the changeset viewer.
