IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24027


Ignore:
Timestamp:
Apr 30, 2009, 2:28:27 PM (17 years ago)
Author:
eugene
Message:

rationalize output ra range (0 - 360)

File:
1 edited

Legend:

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

    r18122 r24027  
    123123  // atan2 returns -pi : +pi
    124124  *x = DEG_RAD * atan2 (sin_x, cos_x) + transform->xo;
    125   if ((*x) < 0.0) (*x) += 360;
     125  if ((*x) <   0.0) (*x) += 360;
     126  if ((*x) > 360.0) (*x) -= 360;
    126127
    127128  // should be in range -pi/2 : +pi/2
Note: See TracChangeset for help on using the changeset viewer.