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/UpdateChips.c

    r27435 r27488  
    77  Image *image;
    88  StarData *raw, *ref;
     9  Coords *oldCoords;
    910
    1011  image = getimages (&Nimage);
     
    2425    assert (Nraw == Nref);
    2526
     27    saveCoords (&image[i].coords, i);
     28
    2629    // FitChip does iterative, clipped fitting
    2730    fprintf (stderr, "image %lld : Nstars: %lld\n", (long long) i, (long long) Nraw);
    28     FitChip (raw, ref, Nraw, &image[i].coords);
     31    if (!FitChip (raw, ref, Nraw, &image[i].coords)) {
     32      oldCoords = getCoords (i);
     33      memcpy (&image[i].coords, oldCoords, sizeof(Coords));
     34    }
    2935
    3036    free (raw);
Note: See TracChangeset for help on using the changeset viewer.