- Timestamp:
- May 6, 2010, 8:02:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.20100506/src/psphotStackImageLoop.c
r27848 r27876 14 14 pmReadout *readout; 15 15 16 pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT"); 17 if (!status) { 16 pmFPAfile *inputRaw = psMetadataLookupPtr (&status, config->files, "PSPHOT.STACK.INPUT.RAW"); 17 pmFPAfile *inputCnv = psMetadataLookupPtr (&status, config->files, "PSPHOT.STACK.INPUT.CNV"); 18 19 pmFPAfile *input = inputRaw ? inputRaw : inputCnv; 20 21 if (!input) { 18 22 psError(PSPHOT_ERR_PROG, false, "Can't find input data!"); 19 23 return false; … … 29 33 psLogMsg ("psphot", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 30 34 if (! chip->process || ! chip->file_exists) { continue; } 31 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Chip in psphotStack.");35 // if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Chip in psphotStack."); 32 36 33 37 // there is now only a single chip (multiple readouts?). loop over it and process 34 38 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 35 39 psLogMsg ("psphot", 5, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 36 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Cell in psphotStack.");40 // if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Cell in psphotStack."); 37 41 38 42 // process each of the readouts … … 41 45 if (! readout->data_exists) { continue; } 42 46 43 # if (0) 44 // uncomment to generate matched psfs 47 // PSF matching 45 48 if (!psphotStackMatchPSFs (config, view)) { 46 49 psError(psErrorCodeLast(), false, "failure in psphotStackMatchPSFs for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout); … … 48 51 return false; 49 52 } 50 # endif51 53 52 54 // XXX for now, we assume there is only a single chip in the PHU:
Note:
See TracChangeset
for help on using the changeset viewer.
