IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17151


Ignore:
Timestamp:
Mar 26, 2008, 10:57:39 AM (18 years ago)
Author:
eugene
Message:

require Nraw == Nref; add notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/UpdateChips.c

    r16810 r17151  
    44
    55  /* we can measure new image parameters for each non-mosaic chip independently */
    6   int i, Nimage, Nstars;
     6  int i, Nimage, Nraw, Nref;
    77  Image *image;
    88  StarData *raw, *ref;
     
    1616
    1717    /* convert measure coordinates to raw entries */
    18     raw = getImageRaw (catalog, Ncatalog, i, &Nstars, MODE_MOSAIC);
     18    raw = getImageRaw (catalog, Ncatalog, i, &Nraw, MODE_MOSAIC);
    1919
    2020    /* convert average coordinates to ref entries */
    21     ref = getImageRef (catalog, Ncatalog, i, &Nstars, MODE_MOSAIC);
     21    ref = getImageRef (catalog, Ncatalog, i, &Nref, MODE_MOSAIC);
    2222
    23     fprintf (stderr, "image %d : Nstars: %d\n", i, Nstars);
    24     FitChip (raw, ref, Nstars, &image[i].coords);
     23    // note that Nraw & Nref must be equal: if not, we made a programming error in one of these two functions.
     24    assert (Nraw == Nref);
     25
     26    // FitChip does iterative, clipped fitting
     27    fprintf (stderr, "image %d : Nstars: %d\n", i, Nraw);
     28    FitChip (raw, ref, Nraw, &image[i].coords);
    2529
    2630    free (raw);
Note: See TracChangeset for help on using the changeset viewer.