Commit 679d34a6 authored by Roberto Susino's avatar Roberto Susino
Browse files

Optimize solo_get_pointing.pro routine

parent 95ac0fb6
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
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