Changeset 30303
- Timestamp:
- Jan 19, 2011, 3:21:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psModules/src/imcombine/pmSubtraction.c
r30288 r30303 968 968 kernels->numStamps = stats->clippedNvalues; 969 969 970 psLogMsg ("pmPSFtry", 4, "chisq vs flux fit: %f +/- %f\n", stats->sampleMean, stats->sampleStdev); 970 psLogMsg ("pmPSFtry", 4, "chisq vs flux model: %e + %e flux + %e flux^2\n", model->coeff[0], model->coeff[1], model->coeff[2]); 971 psLogMsg ("pmPSFtry", 4, "chisq vs flux resid: %f +/- %f\n", stats->sampleMean, stats->sampleStdev); 971 972 psLogMsg("psModules.imcombine", PS_LOG_INFO, "Mean deviation from %d stamps: %lf +/- %lf", kernels->numStamps, kernels->mean, kernels->rms); 972 973 … … 1484 1485 psImageCovarianceSetThreads(oldThreads); 1485 1486 1486 // Copy anything that wasn't convolved 1487 // Copy anything that wasn't convolved (they may have been allocated though, so free them) 1487 1488 switch (kernels->mode) { 1488 1489 case PM_SUBTRACTION_MODE_1: 1489 1490 if (out2) { 1491 psFree(out2->image); 1492 psFree(out2->variance); 1493 psFree(out2->mask); 1494 psFree(out2->covariance); 1490 1495 out2->image = psMemIncrRefCounter(ro2->image); 1491 1496 out2->variance = psMemIncrRefCounter(ro2->variance); … … 1496 1501 case PM_SUBTRACTION_MODE_2: 1497 1502 if (out1) { 1503 psFree(out1->image); 1504 psFree(out1->variance); 1505 psFree(out1->mask); 1506 psFree(out1->covariance); 1498 1507 out1->image = psMemIncrRefCounter(ro1->image); 1499 1508 out1->variance = psMemIncrRefCounter(ro1->variance);
Note:
See TracChangeset
for help on using the changeset viewer.
