IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27490


Ignore:
Timestamp:
Mar 27, 2010, 3:05:38 PM (16 years ago)
Author:
eugene
Message:

improve the failed fit analysis

Location:
branches/eam_branches/relastro.20100326/src
Files:
4 edited

Legend:

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

    r27489 r27490  
    9393    }
    9494
    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);
    9696
    9797    // measure the fit, update the coords & object coordinates
  • branches/eam_branches/relastro.20100326/src/FixProblemImages.c

    r27489 r27490  
    66int FixProblemImages (SkyList *skylist) {
    77
     8  int Nbad;
    89  off_t i, Nimage;
    910  Image *image;
     
    1617  image = getimages (&Nimage);
    1718
     19  Nbad = 0;
    1820  // first check on the dPos reported for each image
    1921  for (i = 0; i < Nimage; i++) {
    2022    double dPosSum, dPos;
    2123    off_t nPos;
     24
     25    // check if this image should be fixed
     26    if (badCoords(i)) {
     27      Nbad ++;
     28      continue;
     29    }
     30
    2231    getOffsets (&dPosSum, &nPos, i);
    2332    dPos = sqrt(dPosSum / nPos);
    2433    if (dPos > 4.0) {
    2534      setBadCoords (i);
     35      Nbad ++;
    2636    }
    2737  }
     38
     39  fprintf (stderr, "fixing %d images\n", Nbad);
    2840
    2941  for (i = 0; i < Nimage; i++) {
     
    3345    // check if this image should be fixed
    3446    if (!badCoords(i)) continue;
     47
     48    fprintf (stderr, "fixing %s\n", image[i].name);
    3549
    3650    // I need a list of the catalogs for this image
  • branches/eam_branches/relastro.20100326/src/ImageOps.c

    r27489 r27490  
    369369    dD = 3600.0*(catalog[c].average[n].D - D);
    370370
     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
    371384    if (fabs(catalog[c].measure[m].dR - dR) > 2.0) {
    372385      fprintf (stderr, "!");
  • branches/eam_branches/relastro.20100326/src/UpdateChips.c

    r27488 r27490  
    2828
    2929    // 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);
    3131    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);
    3233      oldCoords = getCoords (i);
    3334      memcpy (&image[i].coords, oldCoords, sizeof(Coords));
Note: See TracChangeset for help on using the changeset viewer.