IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20802


Ignore:
Timestamp:
Nov 19, 2008, 3:26:40 PM (17 years ago)
Author:
eugene
Message:

catch errors (but do not fail) on chip astrometry updates

File:
1 edited

Legend:

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

    r20269 r20802  
    3636                if (!psastroMosaicOneChip (chip, readout, recipe, updates, iteration)) {
    3737                    readout->data_exists = false;
    38                     psError(PS_ERR_UNKNOWN, false, "failed to find a solution for %d,%d,%d\n",
    39                             view->chip, view->cell, view->readout);
    40                     psFree(view);
    41                     return false;
     38                    psError(PS_ERR_UNKNOWN, false, "failed to find a solution for %d,%d,%d\n", view->chip, view->cell, view->readout);
     39                    psErrorStackPrint(stderr, "failure for one chip\n");
     40                    psErrorClear();
     41                    continue;
    4242                }
    4343
    4444                // create the header keywords to descripe the results
    45                 pmAstromWriteBilevelChip (updates, chip, NONLIN_TOL);
     45                if (!pmAstromWriteBilevelChip (updates, chip, NONLIN_TOL)) {
     46                    readout->data_exists = false;
     47                    psError(PS_ERR_UNKNOWN, false, "invalid solution for %d,%d,%d\n", view->chip, view->cell, view->readout);
     48                    psErrorStackPrint(stderr, "failure for one chip\n");
     49                    psErrorClear();
     50                    continue;
     51                }
    4652            }
    4753        }
Note: See TracChangeset for help on using the changeset viewer.