Changeset 9574 for trunk/psastro/src/psastroAstromGuess.c
- Timestamp:
- Oct 13, 2006, 5:10:34 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroAstromGuess.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroAstromGuess.c
r9374 r9574 26 26 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, "PSASTRO"); 27 27 if (!recipe) { 28 psErrorStackPrint(stderr, "Can't find PSASTRO recipe!\n");29 exit(EXIT_FAILURE);28 psError(PSASTRO_ERR_CONFIG, true, "Can't find PSASTRO recipe!"); 29 return false; 30 30 } 31 31 … … 33 33 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT"); 34 34 if (!input) { 35 psErrorStackPrint(stderr, "Can't find input data!\n");36 exit(EXIT_FAILURE);35 psError(PSASTRO_ERR_CONFIG, true, "Can't find input data"); 36 return false; 37 37 } 38 38 … … 45 45 46 46 while ((chip = pmFPAviewNextChip (view, fpa, 1)) != NULL) { 47 psTrace ( __func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);47 psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 48 48 if (!chip->process || !chip->file_exists) { continue; } 49 49 … … 63 63 // XXX should this go into a different function? this would separate WCS interpretation from application 64 64 while ((cell = pmFPAviewNextCell (view, fpa, 1)) != NULL) { 65 psTrace ( __func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);65 psTrace ("psastro", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 66 66 if (!cell->process || !cell->file_exists) { continue; } 67 67 … … 80 80 p_psDeproject (raw->sky, raw->TP, fpa->projection); 81 81 82 if (i < 0) {82 if ((i < 10) && (psTraceGetLevel("psastro.guess") > 5)) { 83 83 fprintf (stderr, "up: %f,%f -> %f,%f -> %f,%f -> %f,%f\n", 84 84 raw->chip->x, raw->chip->y,
Note:
See TracChangeset
for help on using the changeset viewer.
