- Timestamp:
- Feb 5, 2010, 1:32:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/ppStack/src/ppStackPhotometry.c
r26674 r26785 90 90 if (options->stats) { 91 91 pmReadout *photRO = pmFPAviewThisReadout(photView, photFile->fpa); // Readout with the sources 92 psArray *sources = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.SOURCES"); // Sources 93 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, 94 "Number of sources detected", sources ? sources->n : 0); 95 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, 96 "Time to do photometry", psTimerMark("PPSTACK_PHOT")); 92 pmDetections *detections = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.DETECTIONS"); // detections 93 if (detections) { 94 psAssert (detections->allSources, "missing sources?"); 95 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n); 96 } else { 97 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0); 98 } 99 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, "Time to do photometry", psTimerMark("PPSTACK_PHOT")); 97 100 } 98 101 psFree(photView);
Note:
See TracChangeset
for help on using the changeset viewer.
