Skip to content
Snippets Groups Projects
Commit 34ce9be9 authored by Roberto Susino's avatar Roberto Susino
Browse files

Optimize solo_get_pointing.pro routine

parent 8178a7cd
No related branches found
No related tags found
No related merge requests found
function solo_get_pointing, utc, degrees = degrees, arcsec = arcsec
function solo_get_pointing, utc, degrees = degrees, arcsec = arcsec, celestial = celestial
; convert the requested date into ephemeris time
......@@ -20,13 +20,10 @@ function solo_get_pointing, utc, degrees = degrees, arcsec = arcsec
; make the conversion form rtn to hpc, if necessary
if frame eq 'SOLO_SUN_RTN' then begin
yaw = !dpi * signum(yaw) - yaw
if frame eq 'SOLO_SUN_RTN' then yaw = !dpi * signum(yaw) - yaw
pitch = -pitch
roll = -roll
endif else begin
pitch = -pitch
endelse
; correct any cases where the roll is greater than +/- 180 degrees
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment