IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15238


Ignore:
Timestamp:
Oct 7, 2007, 7:22:13 AM (19 years ago)
Author:
eugene
Message:

added comments, added updates of coordinates

Location:
trunk/Ohana/src/relastro/src
Files:
3 edited

Legend:

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

    r12332 r15238  
    1313  fit_eval (fit);
    1414  fit_apply_coords (fit, coords);
     15
     16  // apply new coords to raw (X,Y -> L,M)
     17  for (i = 0; i < Nmatch; i++) {
     18    XY_to_LM (&raw[i].L, &raw[i].M, raw[i].X, raw[i].Y, coords);
     19  }
     20
    1521  fit_free (fit);
    16   /* FitChip and FitSimple update the coords in different ways? maybe not... */
    1722}
    1823
    19 /* XXX the supporting fitting functions are not quite right
    20    I probably need to apply the projection and then do the fit
    21    to L,M.  I also need to incorporate the transformations
    22    determined for psastro */
    23 
    24 
    25 /* in the simple case, we only have three coord systems of interest:
     24/* in the mosaic case, we have four coord systems of interest:
    2625   R,D : the sky
    2726   P,Q : the tangent plane
     27   L,M : the focal plane
    2828   X,Y : the chip
    2929
    3030   R,D -> P,Q (projection)
    31    P,Q -> X,Y (polynomial transformation)
     31   P,Q -> L,M (polynomial transformation : DIS)
     32   L,M -> X,Y (polynomial transformation : WRP)
    3233*/
    3334
    3435/* XXX I'm not using the errors at all : this could at least be done with the dMag values */
    35 
    36    
  • trunk/Ohana/src/relastro/src/FitMosaic.c

    r12332 r15238  
    1414  fit_apply_coords (fit, coords);
    1515  fit_free (fit);
    16   /* FitChip and FitSimple update the coords in different ways? maybe not... */
     16
     17  // apply new coords to raw (X,Y -> L,M)
     18  for (i = 0; i < Nmatch; i++) {
     19    XY_to_LM (&raw[i].P, &raw[i].Q, raw[i].L, raw[i].M, coords);
     20  }
    1721}
    1822
    19 /* XXX the supporting fitting functions are not quite right
    20    I probably need to apply the projection and then do the fit
    21    to L,M.  I also need to incorporate the transformations
    22    determined for psastro */
    23 
    24 
    25 /* in the simple case, we only have three coord systems of interest:
     23/* in the mosaic case, we have four coord systems of interest:
    2624   R,D : the sky
    2725   P,Q : the tangent plane
     26   L,M : the focal plane
    2827   X,Y : the chip
    2928
    3029   R,D -> P,Q (projection)
    31    P,Q -> X,Y (polynomial transformation)
     30   P,Q -> L,M (polynomial transformation : DIS)
     31   L,M -> X,Y (polynomial transformation : WRP)
    3232*/
    3333
    3434/* XXX I'm not using the errors at all : this could at least be done with the dMag values */
    35 
    36    
  • trunk/Ohana/src/relastro/src/FitSimple.c

    r12332 r15238  
    99  for (i = 0; i < Nmatch; i++) {
    1010    if (raw[i].mask) continue;
    11     fit_add (fit, raw[i].X, raw[i].Y, ref[i].L, ref[i].M, 1.0);
     11    fit_add (fit, raw[i].X, raw[i].Y, ref[i].P, ref[i].Q, 1.0);
    1212  }
    1313  fit_eval (fit);
    1414  fit_apply_coords (fit, coords);
     15
     16  // apply new coords to raw (X,Y -> P,Q)
     17  for (i = 0; i < Nmatch; i++) {
     18    XY_to_LM (&raw[i].L, &raw[i].M, raw[i].X, raw[i].Y, coords);
     19    raw[i].P = raw[i].L;
     20    raw[i].Q = raw[i].M;
     21  }
     22
    1523  fit_free (fit);
    1624}
    17 
    18 /* XXX the supporting fitting functions are not quite right
    19    I probably need to apply the projection and then do the fit
    20    to L,M.  I also need to incorporate the transformations
    21    determined for psastro */
    22 
    2325
    2426/* in the simple case, we only have three coord systems of interest:
     
    2931   R,D -> P,Q (projection)
    3032   P,Q -> X,Y (polynomial transformation)
     33
     34   L,M is maintained, but is identical to P,Q
    3135*/
    3236
    3337/* XXX I'm not using the errors at all : this could at least be done with the dMag values */
    34 
    35    
Note: See TracChangeset for help on using the changeset viewer.