Changeset 11877 for trunk/dvoTools/src/dvoApplyCorrLoop.c
- Timestamp:
- Feb 18, 2007, 11:04:45 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/dvoTools/src/dvoApplyCorrLoop.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dvoTools/src/dvoApplyCorrLoop.c
r11862 r11877 14 14 // psMetadata *recipe = psMetadataLookupMetadata(&status, config->recipes, RECIPE_NAME); 15 15 16 // select the input image 16 17 pmFPAfile *input = psMetadataLookupPtr(&status, config->files, "DVOFLAT.INPUT"); 17 18 if (!status) { … … 22 23 pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest 23 24 24 // load data at FPA leve 25 // load data at FPA level 25 26 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 26 psError(PS_ERR_UNKNOWN, false, "failed IO for fpa in psphot\n");27 psError(PS_ERR_UNKNOWN, false, "failed IO for fpa in dvoApplyCorr\n"); 27 28 psFree(view); 28 29 return false; … … 34 35 if (!chip->process || !chip->file_exists) continue; 35 36 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) { 36 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d in psphot\n", view->chip);37 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d in dvoApplyCorr\n", view->chip); 37 38 psFree (view); 38 39 return false; … … 43 44 psLogMsg ("dvoApplyCorrLoop", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 44 45 if (!cell->process || !cell->file_exists) continue; 45 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) 46 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d, cell %d in psphot\n", view->chip, view->cell); 47 psFree (view); 48 return false; 49 } 50 51 // process each of the readouts 52 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 53 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 54 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d, cell %d, readout %d in psphot\n", view->chip, view->cell, view->readout); 46 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 47 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d, cell %d in dvoApplyCorr\n", view->chip, view->cell); 55 48 psFree (view); 56 49 return false; 57 50 } 58 if (!readout->data_exists) continue;59 51 60 // XXX put the function here which multiplies the input image and the correction image 61 dvoApplyCorrReadout (config, view, "DVOFLAT.INPUT", "DVOFLAT.CORR"); 52 // process each of the readouts 53 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 54 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 55 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d, cell %d, readout %d in dvoApplyCorr\n", view->chip, view->cell, view->readout); 56 psFree (view); 57 return false; 58 } 59 if (!readout->data_exists) continue; 62 60 61 // XXX put the function here which multiplies the input image and the correction image 62 dvoApplyCorrReadout (config, view, "DVOFLAT.INPUT", "DVOFLAT.CORR"); 63 64 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) { 65 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d, cell %d, readout %d in dvoApplyCorr\n", view->chip, view->cell, view->readout); 66 psFree (view); 67 return false; 68 } 69 } 63 70 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) { 64 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d, cell %d , readout %d in psphot\n", view->chip, view->cell, view->readout);71 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d, cell %d in dvoApplyCorr\n", view->chip, view->cell); 65 72 psFree (view); 66 73 return false; … … 68 75 } 69 76 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) { 70 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d , cell %d in psphot\n", view->chip, view->cell);77 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d in dvoApplyCorr\n", view->chip); 71 78 psFree (view); 72 79 return false; … … 74 81 } 75 82 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) { 76 psError(PS_ERR_UNKNOWN, false, "failed IO for chip %d in psphot\n", view->chip);83 psError(PS_ERR_UNKNOWN, false, "failed IO for fpa in dvoApplyCorr\n"); 77 84 psFree (view); 78 85 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
