Changeset 38385 for trunk/psphot/src/psphotStackReadout.c
- Timestamp:
- Jun 5, 2015, 12:38:21 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotStackReadout.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotStackReadout.c
r38303 r38385 1 1 # include "psphotInternal.h" 2 2 3 static bool psphotStackMatchPSFsetup (pmConfig *config, const pmFPAview *view, const char *filerule, const char *fPSF); 4 static bool psphotStackMatchPSFsetupReadout (pmConfig *config, const pmFPAview *view, const char *filerule, const char *fPSF, int index); 5 static bool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule); 6 static void logMemStats(const char *heading); 3 static void psphotLogMemoryStats(const char *heading); 7 4 8 5 // relevant filesets: … … 80 77 psTimerStart ("psphotReadout"); 81 78 82 logMemStats("Start");79 psphotLogMemoryStats("Start"); 83 80 84 81 pmModelClassSetLimits(PM_MODEL_LIMITS_LAX); // allow models to have ugly fits (eg, central cusp) … … 153 150 // psphotDumpTest (config, view, STACK_RAW); 154 151 psMemDump("sourcestats"); 155 logMemStats("sourcestats");152 psphotLogMemoryStats("sourcestats"); 156 153 157 154 // classify sources based on moments, brightness … … 205 202 // window of size PSF_MOMENTS_RADIUS (same window used to measure the psf-scale moments) 206 203 // but iterates to an appropriately larger size 207 logMemStats("before.kron.1");204 psphotLogMemoryStats("before.kron.1"); 208 205 psphotKronIterate(config, view, STACK_RAW, 1); 209 logMemStats("after.kron.1");206 psphotLogMemoryStats("after.kron.1"); 210 207 211 208 // identify CRs and extended sources … … 219 216 psphotReplaceAllSources (config, view, STACK_RAW, false); // pass 1 (detections->allSources) 220 217 221 logMemStats("pass1");218 psphotLogMemoryStats("pass1"); 222 219 223 220 // if we only do one pass, skip to extended source analysis … … 286 283 } 287 284 288 logMemStats("prematch");285 psphotLogMemoryStats("prematch"); 289 286 290 287 // generate the objects (objects unify the sources from the different images) NOTE: could … … 315 312 // re-measure the kron mags with models subtracted 316 313 // psphotKronMasked(config, view, STACK_SRC); 317 logMemStats("before.kron.2");314 psphotLogMemoryStats("before.kron.2"); 318 315 psphotKronIterate(config, view, STACK_RAW, 2); 319 logMemStats("after.kron.2");316 psphotLogMemoryStats("after.kron.2"); 320 317 321 318 // measure source size for the remaining sources … … 435 432 psphotCopyEfficiency (config, view, STACK_OUT, STACK_RAW); 436 433 437 logMemStats("final");434 psphotLogMemoryStats("final"); 438 435 #if (0) 439 436 psphotSourceMemory(config, view, STACK_RAW); … … 457 454 } 458 455 459 staticbool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule) {456 bool psphotStackLoadWCS(pmConfig *config, const pmFPAview *view, const char *filerule) { 460 457 461 458 int num = psphotFileruleCount(config, filerule); … … 483 480 // tries to open and read from a file it is safe 484 481 // XXX: refine this and move it to psLib 485 static void logMemStats(const char *heading) {482 void psphotLogMemoryStats(const char *heading) { 486 483 487 484 // file containing memory statistics for this process proc. See proc(5)
Note:
See TracChangeset
for help on using the changeset viewer.
