IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21338


Ignore:
Timestamp:
Feb 5, 2009, 2:04:35 PM (17 years ago)
Author:
Paul Price
Message:

Correct the correction factor for the covariance produced by the (potentially multiple) smoothing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/psphot/src/psphotSignificanceImage.c

    r21213 r21338  
    100100
    101101    float factor = guess ? 4.0 * M_PI * PS_SQR(SIGMA_SMTH) : 4.0 * M_PI * PS_SQR(SIGMA_SMTH);
     102
     103    // Correct the correction factor for the covariance produced by the (potentially multiple) smoothing
     104    psKernel *kernel = psImageSmoothKernel(SIGMA_SMTH, NSIGMA_SMTH); // Kernel used for smoothing
     105    psKernel *covar = psImageCovarianceCalculate(kernel, readout->covariance); // Covariance matrix
     106    psFree(kernel);
     107    factor /= psImageCovarianceFactor(covar);
     108    psFree(covar);
     109
    102110    // record the effective area and significance scaling factor
    103111    float effArea = 8.0 * M_PI * PS_SQR(SIGMA_SMTH);
Note: See TracChangeset for help on using the changeset viewer.