Changeset 9574 for trunk/psastro/src/psastroMosaicGetRefstars.c
- Timestamp:
- Oct 13, 2006, 5:10:34 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicGetRefstars.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicGetRefstars.c
r9374 r9574 11 11 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, "PSASTRO"); 12 12 if (!recipe) { 13 psError StackPrint(stderr, "Can't find PSASTRO recipe!\n");14 exit(EXIT_FAILURE);13 psError(PSASTRO_ERR_CONFIG, true, "Can't find PSASTRO recipe!\n"); 14 return false; 15 15 } 16 16 … … 18 18 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT"); 19 19 if (!input) { 20 psError StackPrint(stderr, "Can't find input data!\n");21 exit(EXIT_FAILURE);20 psError(PSASTRO_ERR_CONFIG, true, "Can't find input data!\n"); 21 return false; 22 22 } 23 23 … … 30 30 // this loop selects the matched stars for all chips 31 31 while ((chip = pmFPAviewNextChip (view, fpa, 1)) != NULL) { 32 psTrace ( __func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);32 psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 33 33 if (!chip->process || !chip->file_exists) { continue; } 34 34 35 35 while ((cell = pmFPAviewNextCell (view, fpa, 1)) != NULL) { 36 psTrace ( __func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);36 psTrace ("psastro", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 37 37 if (!cell->process || !cell->file_exists) { continue; } 38 38 … … 75 75 psFree (ref); 76 76 } 77 psTrace ( __func__, 4, "Added %ld refstars\n", refstars->n);77 psTrace ("psastro", 4, "Added %ld refstars\n", refstars->n); 78 78 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.REFSTARS", PS_DATA_ARRAY, "astrometry matches", refstars); 79 79
Note:
See TracChangeset
for help on using the changeset viewer.
