IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2008, 8:08:31 AM (18 years ago)
Author:
eugene
Message:

replace poor code with ohana_normalize_angle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/rotcurve.c

    r7917 r19823  
    7070  gfits_scan (&out[0].header, "CRPIX2", "%lf", 1, &Yo);
    7171
    72   while (L >= 360) {L -= 360.0;}
    73   while (L < 0.0)  {L += 360.0;}
     72  L = ohana_normalize_angle (L);
     73
    7474  X = (L - Lo) / dL + Xo;
    7575  if ((X >= Nx) || (X < 0)) {
Note: See TracChangeset for help on using the changeset viewer.