Changeset 9574 for trunk/psastro/src/psastroDataLoad.c
- Timestamp:
- Oct 13, 2006, 5:10:34 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroDataLoad.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroDataLoad.c
r9374 r9574 1 1 # include "psastro.h" 2 // XXX leak free 2006.04.273 4 2 // this loop loads the data from the input files and selects the 5 3 // brighter stars for astrometry 6 4 // at the end of this function, the complete stellar data is loaded 7 5 // into the correct fpa structure locations (readout.analysis:PSPHOT.SOURCES) 8 // 6 9 7 // all of the different astrometry analysis modes use the same data load loop 10 8 bool psastroDataLoad (pmConfig *config) { … … 17 15 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, "PSASTRO"); 18 16 if (!recipe) { 19 psError StackPrint(stderr, "Can't find PSASTRO recipe!\n");20 exit(EXIT_FAILURE);17 psError(PSASTRO_ERR_CONFIG, true, "Can't find PSASTRO recipe!\n"); 18 return false; 21 19 } 22 20 … … 24 22 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT"); 25 23 if (!input) { 26 psError StackPrint(stderr, "Can't find input data!\n");27 exit(EXIT_FAILURE);24 psError(PSASTRO_ERR_CONFIG, true, "Can't find input data!\n"); 25 return false; 28 26 } 27 29 28 // de-activate all files except PSASTRO.INPUT 30 29 pmFPAfileActivate (config->files, false, NULL); … … 37 36 38 37 while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) { 39 psTrace ( __func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);38 psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 40 39 if (!chip->process || !chip->file_exists) { continue; } 41 40 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 42 41 43 42 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 44 psTrace ( __func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);43 psTrace ("psastro", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 45 44 if (!cell->process || !cell->file_exists) { continue; } 46 45 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
Note:
See TracChangeset
for help on using the changeset viewer.
