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/gastro/src/gfit.c

    r16058 r19823  
    437437  }
    438438
    439   while (coords[0].crval1 < 0) coords[0].crval1 += 360.0;
    440   while (coords[0].crval1 > 360.0) coords[0].crval1 -= 360.0;
     439  coords[0].crval1 = ohana_normalize_angle (coords[0].crval1);
    441440
    442441  *DR = sqrt (SQ(dX*coords[0].cdelt1*3600.0) + SQ(dY*coords[0].cdelt1*3600.0));
Note: See TracChangeset for help on using the changeset viewer.