From 5789703e511dfd9762d9bd9797faf744bcfcb8e5 Mon Sep 17 00:00:00 2001 From: Roberto Susino Date: Tue, 20 Jul 2021 09:14:40 +0200 Subject: [PATCH] Fix OBT decoding --- solo_obt2utc.pro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solo_obt2utc.pro b/solo_obt2utc.pro index 84ad2d7..0be3aef 100644 --- a/solo_obt2utc.pro +++ b/solo_obt2utc.pro @@ -1,12 +1,12 @@ 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 -- GitLab