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 Original line 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
	; 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
	; 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