Changeset 29027
- Timestamp:
- Aug 23, 2010, 4:14:50 PM (16 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
psphotExtendedSourceAnalysis.c (modified) (2 diffs)
-
psphotExtendedSourceFits.c (modified) (6 diffs)
-
psphotStackMatchPSFsUtils.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotExtendedSourceAnalysis.c
r29004 r29027 121 121 if (source->peak->y > AnalysisRegion.y1) continue; 122 122 123 // fprintf (stderr, "xsrc: %f, %f : %f\n", source->peak->xf, source->peak->yf, source->peak->SN); 124 123 125 // replace object in image 124 126 if (source->tmpFlags & PM_SOURCE_TMPF_SUBTRACTED) { … … 178 180 } 179 181 182 // fprintf (stderr, "xsrc : tried %ld objects\n", sources->n); 183 180 184 return true; 181 185 } -
trunk/psphot/src/psphotExtendedSourceFits.c
r29015 r29027 200 200 } 201 201 psFree(job); 202 }202 } 203 203 } 204 204 psFree (cellGroups); … … 270 270 // set the radius based on the footprint (also sets the mask pixels) 271 271 if (!psphotSetRadiusFootprint(&radius, readout, source, markVal, 1.0)) { 272 fprintf (stderr, "skipping (1) %f, %f\n", source->peak->xf, source->peak->yf); 272 273 psFree (fitOptions) 273 274 return false; … … 280 281 // XXX save the psf-based moments for output 281 282 if (!pmSourceMoments (source, radius, 0.0, 0.0, maskVal)) { 283 fprintf (stderr, "skipping (2) %f, %f\n", source->peak->xf, source->peak->yf); 282 284 // subtract the best fit from the object, leave local sky 283 285 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); … … 289 291 psImage *modelFluxStart = psMemIncrRefCounter (source->modelFlux); 290 292 if (!modelFluxStart) { 291 // XXX raise an error of some kind? 292 continue; 293 pmSourceCacheModel (source, maskVal); 294 modelFluxStart = psMemIncrRefCounter (source->modelFlux); 295 if (!modelFluxStart) { 296 fprintf (stderr, "skipping (3) %f, %f\n", source->peak->xf, source->peak->yf); 297 // XXX raise an error of some kind? 298 continue; 299 } 293 300 } 294 301 295 302 if (savePics) { 296 303 psphotSaveImage (NULL, readout->image, "image.xp.fits"); … … 317 324 float SNlim = psMetadataLookupF32 (&status, model, "SNLIM_VALUE"); 318 325 assert (status); 326 327 // fprintf (stderr, "xfit: %f, %f : %f\n", source->peak->xf, source->peak->yf, source->peak->SN); 319 328 320 329 // limit selection to some SN limit … … 449 458 psFree (fitOptions); 450 459 460 // fprintf (stderr, "xfit : tried %ld objects\n", sources->n); 461 451 462 // change the value of a scalar on the array (wrap this and put it in psArray.h) 452 463 scalar = job->args->data[7]; -
trunk/psphot/src/psphotStackMatchPSFsUtils.c
r28013 r29027 346 346 if (!fake) goto escape; 347 347 348 dumpImage(fake, readoutSrc, index, "fake");349 dumpImage(readoutSrc, readoutSrc, index, "real");348 // dumpImage(fake, readoutSrc, index, "fake"); 349 // dumpImage(readoutSrc, readoutSrc, index, "real"); 350 350 351 351 if (threads) pmSubtractionThreadsInit(); … … 380 380 } 381 381 382 dumpImage(readoutOut, readoutSrc, index, "conv");383 dumpImageDiff(readoutOut, fake, readoutSrc, index, "diff");382 // dumpImage(readoutOut, readoutSrc, index, "conv"); 383 // dumpImageDiff(readoutOut, fake, readoutSrc, index, "diff"); 384 384 385 385 psFree(fake);
Note:
See TracChangeset
for help on using the changeset viewer.
