Changeset 13901 for trunk/ppImage/src/ppImagePhotom.c
- Timestamp:
- Jun 19, 2007, 4:49:08 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImagePhotom.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImagePhotom.c
r13838 r13901 17 17 pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT"); 18 18 if (!status) { 19 psError(PSPHOT_ERR_CONFIG, false, "PSPHOT.INPUT I/O file is not defined");20 return false;19 psError(PSPHOT_ERR_CONFIG, false, "PSPHOT.INPUT I/O file is not defined"); 20 return false; 21 21 } 22 22 … … 28 28 // iterate over the cells and readout for this chip 29 29 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 30 psLogMsg ("ppImagePhotom", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);31 if (! cell->process || ! cell->file_exists) { continue; }30 psLogMsg ("ppImagePhotom", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 31 if (! cell->process || ! cell->file_exists) { continue; } 32 32 33 // process each of the readouts34 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {35 if (! readout->data_exists) { continue; }33 // process each of the readouts 34 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 35 if (! readout->data_exists) { continue; } 36 36 37 // run the actual photometry analysis38 if (!psphotReadout (config, view)) {39 psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout);40 return false;41 }42 }37 // run the actual photometry analysis 38 if (!psphotReadout (config, view)) { 39 psError(psErrorCodeLast(), false, "failure in psphotReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout); 40 return false; 41 } 42 } 43 43 } 44 44 45 // the PSPHOT.INPUT file is a temporary file used to carry PPIMAGE. OUTPUT.CHIP to psphotReadout45 // the PSPHOT.INPUT file is a temporary file used to carry PPIMAGE.CHIP to psphotReadout 46 46 // XXX not sure that this is needed... 47 47 pmFPAfileActivate (config->files, false, "PSPHOT.INPUT");
Note:
See TracChangeset
for help on using the changeset viewer.
