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

Optimize solo_get_pointing.pro routine

parent 95ac0fb6
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 ; convert the requested date into ephemeris time
...@@ -20,13 +20,10 @@ function solo_get_pointing, utc, degrees = degrees, arcsec = arcsec ...@@ -20,13 +20,10 @@ function solo_get_pointing, utc, degrees = degrees, arcsec = arcsec
; make the conversion form rtn to hpc, if necessary ; make the conversion form rtn to hpc, if necessary
if frame eq 'SOLO_SUN_RTN' then begin if frame eq 'SOLO_SUN_RTN' then yaw = !dpi * signum(yaw) - yaw
yaw = !dpi * signum(yaw) - yaw
pitch = -pitch pitch = -pitch
roll = -roll roll = -roll
endif else begin
pitch = -pitch
endelse
; correct any cases where the roll is greater than +/- 180 degrees ; 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