Skip to content

Commit 2b5a4a9

Browse files
committed
Corrected erroneous signs for RA/dec motion components. Added a comment about the -S (separate motions) flag to the error help text.
1 parent 8d4ccdf commit 2b5a4a9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

sat_eph.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ static double compute_angular_rates( const double *obs_pos, const double *topo_p
148148
total_motion = hypot( xmotion, ymotion);
149149
*motion_pa = PI + atan2( xmotion, ymotion);
150150
*motion_pa *= 180. / PI;
151-
*ra_motion = xmotion * (180. / PI) * 60.;
152-
*dec_motion = ymotion * (180. / PI) * 60.;
151+
*ra_motion = -xmotion * (180. / PI) * 60.;
152+
*dec_motion = -ymotion * (180. / PI) * 60.;
153153
return( total_motion * (180. / PI) * 60.); /* cvt to arcmin/min = arcsec/sec */
154154
}
155155

@@ -512,7 +512,8 @@ static void error_help( void)
512512
" -t(date/time) : starting time of ephemeris (default = now)\n"
513513
" -n(#) : number of ephemeris steps (default = 20)\n"
514514
" -s(#) : ephemeris step size in days (default = 1h)\n"
515-
" -o(#) : five digit NORAD number or YYNNNA international designation\n"
515+
" -S : show motions in RA/dec components, as well as total/PA\n");
516+
printf( " -o(#) : five digit NORAD number or YYNNNA international designation\n"
516517
" -r : do _not_ round times to nearest step size\n"
517518
" -u : show motions in \"/min = degrees/hr (default is \"/sec)\n"
518519
" -m : show times as MJD\n"

0 commit comments

Comments
 (0)