Commit 5789703e authored by Roberto Susino's avatar Roberto Susino
Browse files

Fix OBT decoding

parent 145762e2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2,11 +2,11 @@ function solo_obt2utc, obt

	; check if obt is in the correct form (string, with coarse and fine times)

	if isa(obt, /number) then obt = decode_obt(obt, /from_decimal)
	if isa(obt, /number) then obt_decoded = decode_obt(obt, /from_decimal) else obt_decoded = obt

	; convert the requested obt into ephemeris time

	cspice_scs2e, -144L, obt, et
	cspice_scs2e, -144L, obt_decoded, et

	; convert the ephemeris time into utc