IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8249


Ignore:
Timestamp:
Aug 8, 2006, 6:18:01 PM (20 years ago)
Author:
eugene
Message:

testing residuals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro2/src/plots.c

    r8241 r8249  
    373373  }
    374374
     375  fprintf (stderr, "residuals using RD_to_XY\n");
     376  plot_resid_plot (0, xvect0, yvect0, Npair);
     377  plot_resid_plot (1, xvect1, yvect1, Npair);
     378  plot_fullfield_pairs (xvect2, yvect2, 2*Npair);
     379
     380  for (i = 0; i < Npair; i++) {
     381    fit_apply (&x, &y, st[idx1[i]].X, st[idx1[i]].Y);
     382   
     383    dx = x - sr[idx2[i]].L;
     384    dy = y - sr[idx2[i]].M;
     385   
     386    xvect0[i] = st[idx1[i]].X;
     387    xvect1[i] = st[idx1[i]].Y;
     388    yvect0[i] = dx;
     389    yvect1[i] = dy;
     390
     391    xvect2[2*i+0] = sr[idx2[i]].L;
     392    yvect2[2*i+0] = sr[idx2[i]].M;
     393    xvect2[2*i+1] = x;
     394    yvect2[2*i+1] = y;
     395  }
     396
     397  fprintf (stderr, "residuals using RD_to_XY\n");
    375398  plot_resid_plot (0, xvect0, yvect0, Npair);
    376399  plot_resid_plot (1, xvect1, yvect1, Npair);
Note: See TracChangeset for help on using the changeset viewer.