Changeset 15238
- Timestamp:
- Oct 7, 2007, 7:22:13 AM (19 years ago)
- Location:
- trunk/Ohana/src/relastro/src
- Files:
-
- 3 edited
-
FitChip.c (modified) (1 diff)
-
FitMosaic.c (modified) (1 diff)
-
FitSimple.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/FitChip.c
r12332 r15238 13 13 fit_eval (fit); 14 14 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 15 21 fit_free (fit); 16 /* FitChip and FitSimple update the coords in different ways? maybe not... */17 22 } 18 23 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: 26 25 R,D : the sky 27 26 P,Q : the tangent plane 27 L,M : the focal plane 28 28 X,Y : the chip 29 29 30 30 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) 32 33 */ 33 34 34 35 /* 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 14 14 fit_apply_coords (fit, coords); 15 15 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 } 17 21 } 18 22 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: 26 24 R,D : the sky 27 25 P,Q : the tangent plane 26 L,M : the focal plane 28 27 X,Y : the chip 29 28 30 29 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) 32 32 */ 33 33 34 34 /* 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 9 9 for (i = 0; i < Nmatch; i++) { 10 10 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); 12 12 } 13 13 fit_eval (fit); 14 14 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 15 23 fit_free (fit); 16 24 } 17 18 /* XXX the supporting fitting functions are not quite right19 I probably need to apply the projection and then do the fit20 to L,M. I also need to incorporate the transformations21 determined for psastro */22 23 25 24 26 /* in the simple case, we only have three coord systems of interest: … … 29 31 R,D -> P,Q (projection) 30 32 P,Q -> X,Y (polynomial transformation) 33 34 L,M is maintained, but is identical to P,Q 31 35 */ 32 36 33 37 /* 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.
