Changeset 27490
- Timestamp:
- Mar 27, 2010, 3:05:38 PM (16 years ago)
- Location:
- branches/eam_branches/relastro.20100326/src
- Files:
-
- 4 edited
-
FitChip.c (modified) (1 diff)
-
FixProblemImages.c (modified) (3 diffs)
-
ImageOps.c (modified) (1 diff)
-
UpdateChips.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relastro.20100326/src/FitChip.c
r27489 r27490 93 93 } 94 94 95 fprintf (stderr, "scatter limit: %f based on %d detections; using %d of %d for fit\n", dRmax, Nscatter, fit[0].Npts, Nmatch);95 // fprintf (stderr, "scatter limit: %f based on %d detections; using %d of %d for fit\n", dRmax, Nscatter, fit[0].Npts, Nmatch); 96 96 97 97 // measure the fit, update the coords & object coordinates -
branches/eam_branches/relastro.20100326/src/FixProblemImages.c
r27489 r27490 6 6 int FixProblemImages (SkyList *skylist) { 7 7 8 int Nbad; 8 9 off_t i, Nimage; 9 10 Image *image; … … 16 17 image = getimages (&Nimage); 17 18 19 Nbad = 0; 18 20 // first check on the dPos reported for each image 19 21 for (i = 0; i < Nimage; i++) { 20 22 double dPosSum, dPos; 21 23 off_t nPos; 24 25 // check if this image should be fixed 26 if (badCoords(i)) { 27 Nbad ++; 28 continue; 29 } 30 22 31 getOffsets (&dPosSum, &nPos, i); 23 32 dPos = sqrt(dPosSum / nPos); 24 33 if (dPos > 4.0) { 25 34 setBadCoords (i); 35 Nbad ++; 26 36 } 27 37 } 38 39 fprintf (stderr, "fixing %d images\n", Nbad); 28 40 29 41 for (i = 0; i < Nimage; i++) { … … 33 45 // check if this image should be fixed 34 46 if (!badCoords(i)) continue; 47 48 fprintf (stderr, "fixing %s\n", image[i].name); 35 49 36 50 // I need a list of the catalogs for this image -
branches/eam_branches/relastro.20100326/src/ImageOps.c
r27489 r27490 369 369 dD = 3600.0*(catalog[c].average[n].D - D); 370 370 371 // complain if the new location is far from the average location 372 if (fabs(dR) > 2.0) { 373 fprintf (stderr, "!"); 374 setBadCoords (im); // report a failure for this image 375 return; 376 } 377 if (fabs(dD) > 2.0) { 378 fprintf (stderr, "*"); 379 setBadCoords (im); // report a failure for this image 380 return; 381 } 382 383 // complain if the new location is far from the old location 371 384 if (fabs(catalog[c].measure[m].dR - dR) > 2.0) { 372 385 fprintf (stderr, "!"); -
branches/eam_branches/relastro.20100326/src/UpdateChips.c
r27488 r27490 28 28 29 29 // FitChip does iterative, clipped fitting 30 fprintf (stderr, "image %lld : Nstars: %lld\n", (long long) i, (long long) Nraw);30 // fprintf (stderr, "image %lld : Nstars: %lld\n", (long long) i, (long long) Nraw); 31 31 if (!FitChip (raw, ref, Nraw, &image[i].coords)) { 32 fprintf (stderr, "reject fit for image %s (%lld) : Nstars: %lld\n", image[i].name, (long long) i, (long long) Nraw); 32 33 oldCoords = getCoords (i); 33 34 memcpy (&image[i].coords, oldCoords, sizeof(Coords));
Note:
See TracChangeset
for help on using the changeset viewer.
