Changeset 34336 for trunk/psphot/src/psphotStackReadout.c
- Timestamp:
- Aug 23, 2012, 8:39:35 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotStackReadout.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotStackReadout.c
r34317 r34336 121 121 } 122 122 123 #ifdef MAKE_CHISQ_IMAGE 123 124 // also make the chisq detection image 124 125 if (!psphotStackChisqImage(config, view, STACK_DET, STACK_SRC)) { … … 126 127 return psphotReadoutCleanup (config, view, STACK_SRC); 127 128 } 129 #endif 128 130 if (!strcasecmp (breakPt, "CHISQ")) { 129 131 return psphotReadoutCleanup (config, view, STACK_SRC); … … 204 206 // window of size PSF_MOMENTS_RADIUS (same window used to measure the psf-scale moments) 205 207 // but iterates to an appropriately larger size 206 logMemStats("before.kron.1");208 logMemStats("before.kron.1"); 207 209 psphotKronIterate(config, view, STACK_SRC, 1); 208 logMemStats("after.kron.1");210 logMemStats("after.kron.1"); 209 211 210 212 // identify CRs and extended sources … … 375 377 376 378 // NOTE: we always do the radial apertures analysis on the convolved image since 377 // those are the ones that are psf matched and the source of STACK_OUT's pixels379 // those are the ones that are psf matched and are the source of STACK_OUT's pixels 378 380 // XXX: Actually if PSPHOT.STACK.MATCH.PSF.SOURCE were set to RAW this wouldn't be true. 379 381 // but in that case we don't get past the psf matching step because there is no … … 460 462 psphotSourceFreePixels (config, view, STACK_SRC); 461 463 464 #ifdef MAKE_CHISQ_IMAGE 462 465 // remove chisq image from config->file:PSPHOT.INPUT 463 466 psphotStackRemoveChisqFromInputs(config, STACK_DET); … … 465 468 psphotStackRemoveChisqFromInputs(config, STACK_SRC); 466 469 } 470 #endif 467 471 468 472 psFree (objects); … … 498 502 // This will only work on a system that has /proc (not MacOS for instance) but since this function just 499 503 // tries to open and read from a file it is safe 504 // XXX: refine this and move it to psLib 500 505 static void logMemStats(const char *heading) { 501 506 … … 519 524 } 520 525 521 // assuming 4 KB page size here526 // XXX: assuming 4 KB page size here 522 527 # define PAGES_TO_MB(_v) (_v * 4.096 / 1024.) 523 528 psLogMsg ("psphot", PS_LOG_INFO, "Memory usage at %20s: Total VmSize: %8.2f MB Resident %8.2f MB Data: %8.2f MB\n",
Note:
See TracChangeset
for help on using the changeset viewer.
