Changeset 12771 for trunk/pswarp/src/pswarpDataSave.c
- Timestamp:
- Apr 5, 2007, 5:38:16 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpDataSave.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpDataSave.c
r10946 r12771 16 16 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSWARP.INPUT"); 17 17 if (!input) { 18 psError(PSWARP_ERR_CONFIG, true, "Can't find input data!\n");19 return false;18 psError(PSWARP_ERR_CONFIG, true, "Can't find input data!\n"); 19 return false; 20 20 } 21 21 … … 23 23 pmFPAfileActivate (config->files, false, NULL); 24 24 pmFPAfileActivate (config->files, true, "PSWARP.OUTPUT"); 25 pmFPAfileActivate (config->files, true, "PSWARP.OUTPUT.MASK"); 26 pmFPAfileActivate (config->files, true, "PSWARP.OUTPUT.WEIGHT"); 25 27 pmFPAview *view = pmFPAviewAlloc (0); 26 28 … … 31 33 psTrace ("pswarp", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 32 34 if (!chip->process || !chip->file_exists) { continue; } 33 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);35 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 34 36 35 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {37 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 36 38 psTrace ("pswarp", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 37 39 if (!cell->process || !cell->file_exists) { continue; } 38 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);40 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 39 41 40 // process each of the readouts41 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {42 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);43 if (! readout->data_exists) { continue; }42 // process each of the readouts 43 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 44 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 45 if (! readout->data_exists) { continue; } 44 46 45 // pswarpConvertReadout (readout, config);47 // pswarpConvertReadout (readout, config); 46 48 47 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);48 }49 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);50 }51 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);49 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 50 } 51 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 52 } 53 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 52 54 } 53 55 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);
Note:
See TracChangeset
for help on using the changeset viewer.
