Replies: 3 comments
-
Hello Claudio , Could you provide more details as to how you are passing this UTCInit value to the module ? |
Beta Was this translation helpful? Give feedback.
-
Hello Benjamin,
Thanks for your time! |
Beta Was this translation helpful? Give feedback.
-
This appears to be linked to how Spice interprets the calendar representation of the input string. I looked up the definition of the Spice routine str2et_c that is called inside SpiceInterface (see spiceInterface.cpp:184) :
I added a case in test_unitSpice.py in the spiceInterface folder using your time string "2021 MAY 1 00:30:00" and looked at the value of J2000EtInit in the debugger (I didn't need to invoke it but whatever) : it is interpreted as a UTC date by default. Had you added 'TDB' to the string, you would get the exact same round count of seconds as here Hope this helps ! |
Beta Was this translation helpful? Give feedback.
-
I create a new spiceInterface with the current time UTCInit = "2021 MAY 1 00:30:00".
To test my spiceInterface I recorded spiceTimeOutMsg and printed the first value of J2000Current.
After checking the J2000 value I noticed diff of 69.18548 seconds to the UTCInit time. To be sure the recorder isnt the problem, I set the priority of the recorder module to the highest number. What could be the problem?
Thank you for your time
Beta Was this translation helpful? Give feedback.
All reactions