Changeset 33662 for trunk/Ohana/src/opihi/cmd.astro/coords.c
- Timestamp:
- Apr 1, 2012, 3:24:39 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/coords.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/coords.c
r29540 r33662 83 83 } 84 84 if (mode == PIXEL) { 85 Xin = ohana_normalize_angle_to_midpoint (Xin, coords.crval1); 85 86 RD_to_XY (&Xout, &Yout, Xin, Yin, &coords); 86 87 if (!Quiet) gprint (GP_LOG, "%7.2f %7.2f\n", Xout, Yout); … … 92 93 if (mode == SKY) { 93 94 for (i = 0; i < xvec[0].Nelements; i++) { 94 XY_to_RD (&xvec[0].elements.Flt[i], &yvec[0].elements.Flt[i], xvec[0].elements.Flt[i], yvec[0].elements.Flt[i], &coords); 95 double Xin = xvec[0].elements.Flt[i]; 96 double Yin = yvec[0].elements.Flt[i]; 97 xvec[0].elements.Flt[i] = NAN; 98 yvec[0].elements.Flt[i] = NAN; 99 XY_to_RD (&xvec[0].elements.Flt[i], &yvec[0].elements.Flt[i], Xin, Yin, &coords); 95 100 } 96 101 return (TRUE); … … 98 103 if (mode == PIXEL) { 99 104 for (i = 0; i < xvec[0].Nelements; i++) { 100 RD_to_XY (&xvec[0].elements.Flt[i], &yvec[0].elements.Flt[i], xvec[0].elements.Flt[i], yvec[0].elements.Flt[i], &coords); 105 double Xin = xvec[0].elements.Flt[i]; 106 double Yin = yvec[0].elements.Flt[i]; 107 xvec[0].elements.Flt[i] = NAN; 108 yvec[0].elements.Flt[i] = NAN; 109 Xin = ohana_normalize_angle_to_midpoint (Xin, coords.crval1); 110 RD_to_XY (&xvec[0].elements.Flt[i], &yvec[0].elements.Flt[i], Xin, Yin, &coords); 101 111 } 102 112 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
