Changeset 31546
- Timestamp:
- May 12, 2011, 4:49:59 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110505/psphot/src
- Files:
-
- 2 edited
-
psphotChoosePSF.c (modified) (3 diffs)
-
psphotExtendedSourceFits.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110505/psphot/src/psphotChoosePSF.c
r31452 r31546 373 373 } 374 374 375 376 375 377 char *modelName = pmModelClassGetName (psf->type); 376 378 psLogMsg ("psphot.pspsf", PS_LOG_INFO, "select psf model: %f sec\n", psTimerMark ("psphot.choose.psf")); … … 503 505 } 504 506 psMetadataAddF32 (readout->analysis, PS_LIST_TAIL, "PSF_EXT1", PS_META_REPLACE, "PSF extra param 1", stats->sampleMean); 507 psLogMsg ("psphot", PS_LOG_DETAIL, "PSF extra parameter 1: %f +/- %f", stats->sampleMean, stats->sampleStdev); 505 508 } 506 509 … … 511 514 } 512 515 psMetadataAddF32 (readout->analysis, PS_LIST_TAIL, "PSF_EXT2", PS_META_REPLACE, "PSF extra param 2", stats->sampleMean); 513 } 514 515 psMetadataAddF32 (readout->analysis, PS_LIST_TAIL, "ANGLE", PS_META_REPLACE, "PSF angle", axes.theta); 516 psLogMsg ("psphot", PS_LOG_DETAIL, "PSF extra parameter 2: %f +/- %f", stats->sampleMean, stats->sampleStdev); 517 } 518 519 // psMetadataAddF32 (readout->analysis, PS_LIST_TAIL, "ANGLE", PS_META_REPLACE, "PSF angle", axes.theta); 516 520 psMetadataAddS32 (readout->analysis, PS_LIST_TAIL, "NPSFSTAR", PS_META_REPLACE, "Number of stars used to make PSF", psf->nPSFstars); 521 522 // psLogMsg ("psphot", PS_LOG_DETAIL, "PSF angle: %f, nstars: %d", axes.theta, psf->nPSFstars); 517 523 518 524 char *psfModelName = pmModelClassGetName(psf->type); -
branches/eam_branches/ipp-20110505/psphot/src/psphotExtendedSourceFits.c
r31452 r31546 268 268 float radius; 269 269 psScalar *scalar = NULL; 270 pmMoments psfMoments; 270 271 271 272 // arguments: readout, sources, models, region, psfSize, maskVal, markVal … … 333 334 // this uses the footprint to judge both radius and aperture? 334 335 // XXX save the psf-based moments for output 336 psfMoments = *source->moments; 335 337 if (!pmSourceMoments (source, radius, 0.0, 0.0, 0.0, maskVal)) { 338 // subtract the best fit from the object, leave local sky 336 339 fprintf (stderr, "skipping (2) %f, %f\n", source->peak->xf, source->peak->yf); 337 // subtract the best fit from the object, leave local sky340 *source->moments = psfMoments; 338 341 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 339 342 // XXX raise an error flag of some kind … … 348 351 if (!modelFluxStart) { 349 352 fprintf (stderr, "skipping (3) %f, %f\n", source->peak->xf, source->peak->yf); 353 *source->moments = psfMoments; 350 354 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 351 355 // XXX raise an error of some kind? … … 467 471 source->modelFlux = modelFluxStart; 468 472 473 *source->moments = psfMoments; 469 474 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 470 475 … … 492 497 source->modelFlux = psMemIncrRefCounter (modelFluxes->data[minModel]); 493 498 499 // replace the original moments 500 *source->moments = psfMoments; 501 494 502 // subtract the best fit from the object, leave local sky 495 503 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
Note:
See TracChangeset
for help on using the changeset viewer.
