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/dvo/subpix.c

    r16810 r19823  
    2727  }
    2828  if (!ohana_str_to_radec (&Ra, &Dec, argv[1], argv[2])) return (FALSE);
    29   if (Ra < 0) Ra += 360.0;
    30   if (Ra > 360.0) Ra -= 360.0;
     29  Ra = ohana_normalize_angle (Ra);
     30
    3131  Radius = atof (argv[3]);
    3232
Note: See TracChangeset for help on using the changeset viewer.