IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 5:10:34 PM (20 years ago)
Author:
eugene
Message:

all sorts of error handling fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicGetRefstars.c

    r9374 r9574  
    1111    psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, "PSASTRO");
    1212    if (!recipe) {
    13         psErrorStackPrint(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;
    1515    }
    1616
     
    1818    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
    1919    if (!input) {
    20         psErrorStackPrint(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;
    2222    }
    2323
     
    3030    // this loop selects the matched stars for all chips
    3131    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);
    3333        if (!chip->process || !chip->file_exists) { continue; }
    3434       
    3535        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);
    3737            if (!cell->process || !cell->file_exists) { continue; }
    3838
     
    7575                    psFree (ref);
    7676                }
    77                 psTrace (__func__, 4, "Added %ld refstars\n", refstars->n);
     77                psTrace ("psastro", 4, "Added %ld refstars\n", refstars->n);
    7878                psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.REFSTARS", PS_DATA_ARRAY, "astrometry matches", refstars);
    7979
Note: See TracChangeset for help on using the changeset viewer.