Changeset 15216 for trunk/psastro/src/psastroDataLoad.c
- Timestamp:
- Oct 4, 2007, 9:55:03 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroDataLoad.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroDataLoad.c
r12806 r15216 5 5 // into the correct fpa structure locations (readout.analysis:PSPHOT.SOURCES) 6 6 7 # define ESCAPE { \ 8 psError(PS_ERR_UNKNOWN, false, "Failure in psastroDataSave"); \ 9 psFree (view); \ 10 return false; \ 11 } 12 7 13 // all of the different astrometry analysis modes use the same data load loop 8 14 bool psastroDataLoad (pmConfig *config) { … … 33 39 34 40 // files associated with the science image 35 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);41 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE; 36 42 37 43 while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) { 38 44 psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 39 45 if (!chip->process || !chip->file_exists) { continue; } 40 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);46 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE; 41 47 42 48 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 43 49 psTrace ("psastro", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 44 50 if (!cell->process || !cell->file_exists) { continue; } 45 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);51 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE; 46 52 47 53 // process each of the readouts 48 54 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 49 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);50 if (! readout->data_exists) { continue; }55 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE; 56 if (!readout->data_exists) { continue; } 51 57 52 psastroConvertReadout (readout, recipe);58 if (!psastroConvertReadout (readout, recipe)) ESCAPE; 53 59 54 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);60 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE; 55 61 } 56 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);62 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE; 57 63 } 58 pmFPAfileIOChecks (config, view, PM_FPA_AFTER);64 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE; 59 65 } 60 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 66 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE; 67 61 68 psFree (view); 62 69 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
