Changeset 26898 for trunk/ppStack/src/ppStackPhotometry.c
- Timestamp:
- Feb 10, 2010, 7:41:23 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackPhotometry.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackPhotometry.c
r24216 r26898 19 19 psAssert(recipe, "We've thrown an error on this before."); 20 20 21 bool mdok; // Status of MD lookup 22 if (!psMetadataLookupBool(&mdok, recipe, "PHOTOMETRY")) { 21 if (!options->photometry) { 23 22 // Nothing to do 24 23 return true; … … 60 59 "Bits to use for mark", markValue); 61 60 62 pmCell *sourcesCell = pmFPAfileThisCell(config->files, photView, "PPSTACK.OUTPUT"); 63 psArray *inSources = psMetadataLookupPtr(NULL, sourcesCell->analysis, "PSPHOT.SOURCES"); 61 psArray *inSources = options->sources; 64 62 if (!inSources) { 65 63 psError(PS_ERR_UNKNOWN, false, "Unable to find input sources"); … … 92 90 if (options->stats) { 93 91 pmReadout *photRO = pmFPAviewThisReadout(photView, photFile->fpa); // Readout with the sources 94 psArray *sources = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.SOURCES"); // Sources 95 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, 96 "Number of sources detected", sources ? sources->n : 0); 97 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, 98 "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")); 99 100 } 100 101 psFree(photView);
Note:
See TracChangeset
for help on using the changeset viewer.
