IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 26, 2010, 4:43:50 PM (16 years ago)
Author:
eugene
Message:

updates to handle image coordinate failures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relastro.20100326/src/FitChip.c

    r24308 r27488  
    2222  CoordFit *fit;
    2323  double dL, dM, dR, dRmax, *values;
     24  Coords oldCoords;
    2425
    2526  ALLOCATE (values, double, Nmatch);
     
    8485      default:
    8586        fprintf (stderr, "invalid chip order %d\n", coords[0].Npolyterms);
    86         abort ();
     87        skip = TRUE;
    8788    }
    8889    if (skip) {
     
    9697
    9798    // measure the fit, update the coords & object coordinates
    98     fit_eval (fit);
    99     fit_apply_coords (fit, coords);
     99    if (!fit_eval (fit)) {
     100      fprintf (stderr, "failed to fit new model\n");
     101      return FALSE;
     102    }
     103
     104    if (!fit_apply_coords (fit, coords)) {
     105      fprintf (stderr, "failed to fit new model\n");
     106      return FALSE;
     107    }
     108
    100109    fit_free (fit);
    101110
     
    107116
    108117  free (values);
    109   return;
     118  return TRUE;
    110119}
    111120
Note: See TracChangeset for help on using the changeset viewer.