Changeset 17151
- Timestamp:
- Mar 26, 2008, 10:57:39 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relastro/src/UpdateChips.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/UpdateChips.c
r16810 r17151 4 4 5 5 /* we can measure new image parameters for each non-mosaic chip independently */ 6 int i, Nimage, N stars;6 int i, Nimage, Nraw, Nref; 7 7 Image *image; 8 8 StarData *raw, *ref; … … 16 16 17 17 /* convert measure coordinates to raw entries */ 18 raw = getImageRaw (catalog, Ncatalog, i, &N stars, MODE_MOSAIC);18 raw = getImageRaw (catalog, Ncatalog, i, &Nraw, MODE_MOSAIC); 19 19 20 20 /* convert average coordinates to ref entries */ 21 ref = getImageRef (catalog, Ncatalog, i, &N stars, MODE_MOSAIC);21 ref = getImageRef (catalog, Ncatalog, i, &Nref, MODE_MOSAIC); 22 22 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); 25 29 26 30 free (raw);
Note:
See TracChangeset
for help on using the changeset viewer.
