Changeset 26923
- Timestamp:
- Feb 11, 2010, 6:32:28 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ppStack/src/ppStackPhotometry.c (modified) (2 diffs)
-
psModules/src/detrend/pmPatternIO.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackPhotometry.c
r26898 r26923 66 66 } 67 67 68 pmModelClassSetLimits(PM_MODEL_LIMITS_IGNORE); 68 69 if (!psphotReadoutKnownSources(config, photView, inSources)) { 69 70 // This is likely a data quality issue … … 91 92 pmReadout *photRO = pmFPAviewThisReadout(photView, photFile->fpa); // Readout with the sources 92 93 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 }94 if (detections) { 95 psAssert (detections->allSources, "missing sources?"); 96 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n); 97 } else { 98 psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0); 99 } 99 100 psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, "Time to do photometry", psTimerMark("PPSTACK_PHOT")); 100 101 } -
trunk/psModules/src/detrend/pmPatternIO.c
r26893 r26923 77 77 } 78 78 79 pmFPAview *thisView = pmFPAviewAlloc(view->nRows); // Copy of input view 80 *thisView = *view; 81 82 for (int i = 0; i < cell->readouts->n; i++) { 83 pmReadout *readout = cell->readouts->data[i]; 84 thisView->readout = i; 85 if (!pmReadoutWritePattern(readout, file->fits)) { 86 psError(PS_ERR_IO, false, "Failed to write %dth readout", i); 87 psFree(thisView); 88 return false; 89 } 90 } 91 psFree(thisView); 79 // Only do the FIRST readout --- don't want to write lots of headers 80 pmReadout *readout = cell->readouts->data[0]; 81 if (!pmReadoutWritePattern(readout, file->fits)) { 82 psError(PS_ERR_IO, false, "Failed to write readout"); 83 return false; 84 } 92 85 return true; 93 86 }
Note:
See TracChangeset
for help on using the changeset viewer.
