Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-3745

Ephemeris files sometimes miss last data line in a chunk before a new event

    Details

      Description

      I will add more information later today.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            shughes Steven Hughes added a comment - - edited

            I attached two scripts to duplicate this bug.

            • Run CreateSPKStressTest.script to create an SPK ephemeris for the propagation stress test. This script creates an SPK kernel named SPICEStressTest.bsp.
            • Modify your local copy of UseSPKStressTest.script so that the SPK kernel on the spacecraft points to your local copy of SPICEStressTest.bsp. You need to modify this line
              GMAT DefaultSC.OrbitSpiceKernelName = {'C:\Users\sphughe1\Documents\GMAT\LatestCompleteVersion\output\SPICEStressTest.bsp'}
            • Run UseSPKStress Test

            You should see the test create a trajectory that looks the same as the CreateSPKStressTest.script file. However, I get an error message:
            Message received from CSPICE is: [Insufficient ephemeris data has been loaded to compute the state of -123456789 (numSat) relative to 399 (EARTH) at the ephemeris epoch 2000 JAN 02 02:25:32.183.]
            The original script file runs until an epoch of 03 Jan 2000 08:34:35.770

            Show
            shughes Steven Hughes added a comment - - edited I attached two scripts to duplicate this bug. Run CreateSPKStressTest.script to create an SPK ephemeris for the propagation stress test. This script creates an SPK kernel named SPICEStressTest.bsp. Modify your local copy of UseSPKStressTest.script so that the SPK kernel on the spacecraft points to your local copy of SPICEStressTest.bsp. You need to modify this line GMAT DefaultSC.OrbitSpiceKernelName = {'C:\Users\sphughe1\Documents\GMAT\LatestCompleteVersion\output\SPICEStressTest.bsp'} Run UseSPKStress Test You should see the test create a trajectory that looks the same as the CreateSPKStressTest.script file. However, I get an error message: Message received from CSPICE is: [Insufficient ephemeris data has been loaded to compute the state of -123456789 (numSat) relative to 399 (EARTH) at the ephemeris epoch 2000 JAN 02 02:25:32.183.] The original script file runs until an epoch of 03 Jan 2000 08:34:35.770
            Hide
            shughes Steven Hughes added a comment -

            I verified this bug still exists in 28 Mar. build.

            Show
            shughes Steven Hughes added a comment - I verified this bug still exists in 28 Mar. build.
            Hide
            gmatloj Linda Jun added a comment - - edited

            I verified that it is writing out ephemeris for the entire mission.

            The last data record from the create script report file is:

            04 Jan 2000 14:53:34.066 21548.12090354128        2862.855681290545        11283.30804636027        1094.389114310115
            
            The last segment from the spice file is:
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 04 13:39:34.066
               UTC Stop Time  : 2000 JAN 04 14:53:34.066
               ET Start Time  : 2000 JAN 04 13:40:38.249
               ET Stop time   : 2000 JAN 04 14:54:38.249
            --------------------------------------------------------------------------------
            
            Show
            gmatloj Linda Jun added a comment - - edited I verified that it is writing out ephemeris for the entire mission. The last data record from the create script report file is: 04 Jan 2000 14:53:34.066 21548.12090354128 2862.855681290545 11283.30804636027 1094.389114310115 The last segment from the spice file is: -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 04 13:39:34.066 UTC Stop Time : 2000 JAN 04 14:53:34.066 ET Start Time : 2000 JAN 04 13:40:38.249 ET Stop time : 2000 JAN 04 14:54:38.249 --------------------------------------------------------------------------------
            Hide
            gmatloj Linda Jun added a comment - - edited

            When I changed use script to propagate until DefaultSC.TAIModJulian = 21548.1205 I got the following error:

             Message received from CSPICE is: [Insufficient ephemeris data has been loaded to compute the state of -123456789 relative to 399 (EARTH) at the ephemeris epoch 2000 JAN 03 20:55:32.184.]
            

            I'm confused why that error is thrown even though the spice log file shows some data in that time segment:

            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 03 20:55:16.002
               UTC Stop Time  : 2000 JAN 04 00:31:16.002
               ET Start Time  : 2000 JAN 03 20:56:20.186
               ET Stop time   : 2000 JAN 04 00:32:20.186
            --------------------------------------------------------------------------------
            
            Show
            gmatloj Linda Jun added a comment - - edited When I changed use script to propagate until DefaultSC.TAIModJulian = 21548.1205 I got the following error: Message received from CSPICE is: [Insufficient ephemeris data has been loaded to compute the state of -123456789 relative to 399 (EARTH) at the ephemeris epoch 2000 JAN 03 20:55:32.184.] I'm confused why that error is thrown even though the spice log file shows some data in that time segment: -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 03 20:55:16.002 UTC Stop Time : 2000 JAN 04 00:31:16.002 ET Start Time : 2000 JAN 03 20:56:20.186 ET Stop time : 2000 JAN 04 00:32:20.186 --------------------------------------------------------------------------------
            Hide
            shughes Steven Hughes added a comment -

            It appears to me that GMAT is still not writing all of the ephemeris data it needs to. I ran spacit on the file and see this for the segment before and including the segment you mentioned above. The main point is this: The stop epoch in UTC of the first segement below is 2000 JAN 03 20:53:40.203. The start epoch of the next segment is 2000 JAN 03 20:55:16.002. Notice they are not the same so we missed data. I see the same thing in the CCSDS file

            Here is CCSDS file data from line 3961 of the file

            2000-01-04T03:30:37.488   1.528347487677702e+002  -6.985360186783494e+003  -5.012504733386574e+002   7.469442998310067e+000   5.860577158731213e-002   1.610856457234400e+000
            
            COMMENT  This block begins after 2000-01-04T03:30:37.488
            
            META_START
            OBJECT_NAME          = numSat
            OBJECT_ID            = SatId
            CENTER_NAME          = Earth
            REF_FRAME            = EME2000
            TIME_SYSTEM          = UTC
            START_TIME           = 2000-01-04T03:32:13.066
            USEABLE_START_TIME   = 2000-01-04T03:32:13.066
            USEABLE_STOP_TIME    = 2000-01-04T03:57:13.066
            STOP_TIME            = 2000-01-04T03:57:13.066
            INTERPOLATION        = Lagrange
            INTERPOLATION_DEGREE = 7 
            META_STOP
                                                               
            2000-01-04T03:32:13.066   8.646738568505598e+002  -6.942750602001775e+003  -3.448981933387568e+002   7.412939597662358e+000   8.322398497091105e-001   1.657985351913196e+000
            

            Here is the SPK file data

            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 03 19:33:49.818
               UTC Stop Time  : 2000 JAN 03 20:53:40.203
               ET Start Time  : 2000 JAN 03 19:34:54.001
               ET Stop time   : 2000 JAN 03 20:54:44.387
            --------------------------------------------------------------------------------
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 03 20:55:16.002
               UTC Stop Time  : 2000 JAN 04 00:31:16.002
               ET Start Time  : 2000 JAN 03 20:56:20.186
               ET Stop time   : 2000 JAN 04 00:32:20.186
            
            Show
            shughes Steven Hughes added a comment - It appears to me that GMAT is still not writing all of the ephemeris data it needs to. I ran spacit on the file and see this for the segment before and including the segment you mentioned above. The main point is this: The stop epoch in UTC of the first segement below is 2000 JAN 03 20:53:40.203. The start epoch of the next segment is 2000 JAN 03 20:55:16.002. Notice they are not the same so we missed data. I see the same thing in the CCSDS file Here is CCSDS file data from line 3961 of the file 2000-01-04T03:30:37.488 1.528347487677702e+002 -6.985360186783494e+003 -5.012504733386574e+002 7.469442998310067e+000 5.860577158731213e-002 1.610856457234400e+000 COMMENT This block begins after 2000-01-04T03:30:37.488 META_START OBJECT_NAME = numSat OBJECT_ID = SatId CENTER_NAME = Earth REF_FRAME = EME2000 TIME_SYSTEM = UTC START_TIME = 2000-01-04T03:32:13.066 USEABLE_START_TIME = 2000-01-04T03:32:13.066 USEABLE_STOP_TIME = 2000-01-04T03:57:13.066 STOP_TIME = 2000-01-04T03:57:13.066 INTERPOLATION = Lagrange INTERPOLATION_DEGREE = 7 META_STOP 2000-01-04T03:32:13.066 8.646738568505598e+002 -6.942750602001775e+003 -3.448981933387568e+002 7.412939597662358e+000 8.322398497091105e-001 1.657985351913196e+000 Here is the SPK file data -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 03 19:33:49.818 UTC Stop Time : 2000 JAN 03 20:53:40.203 ET Start Time : 2000 JAN 03 19:34:54.001 ET Stop time : 2000 JAN 03 20:54:44.387 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 03 20:55:16.002 UTC Stop Time : 2000 JAN 04 00:31:16.002 ET Start Time : 2000 JAN 03 20:56:20.186 ET Stop time : 2000 JAN 04 00:32:20.186
            Hide
            shughes Steven Hughes added a comment -

            This test case writes out both CCSDS and SPK ephemeris files.

            Show
            shughes Steven Hughes added a comment - This test case writes out both CCSDS and SPK ephemeris files.
            Hide
            shughes Steven Hughes added a comment -

            Here is a simplified script

            Show
            shughes Steven Hughes added a comment - Here is a simplified script
            Hide
            shughes Steven Hughes added a comment -

            Here is more info. When I run the full stress test, I see two blocks what have mismatched end->start times. I believe they both occur for propagations shown in the script below. For some reason GMAT is creating a new chunk for in this case when it doesn't need to and the chunk end->start times are not matching. Perhaps getting rid of the unnecessary chunking will fix the problem.

            For I = 1:1:10;
               Propagate numProp(numSat);
            EndFor;
            
            % For in stop condition
            For I = 1:1:10;
               
               GMAT stopTA = numSat.Earth.TA + 7;
               Propagate numProp(numSat) {numSat.Earth.TA = stopTA};
               Report TAcount numSat.UTCModJulian numSat.Earth.TA;
            EndFor;
            
            Show
            shughes Steven Hughes added a comment - Here is more info. When I run the full stress test, I see two blocks what have mismatched end->start times. I believe they both occur for propagations shown in the script below. For some reason GMAT is creating a new chunk for in this case when it doesn't need to and the chunk end->start times are not matching. Perhaps getting rid of the unnecessary chunking will fix the problem. For I = 1:1:10; Propagate numProp(numSat); EndFor; % For in stop condition For I = 1:1:10; GMAT stopTA = numSat.Earth.TA + 7; Propagate numProp(numSat) {numSat.Earth.TA = stopTA}; Report TAcount numSat.UTCModJulian numSat.Earth.TA; EndFor;
            Hide
            gmatloj Linda Jun added a comment -

            Changed not to write comments other than events.
            Changed to ignore end of block flag and continue until end of run flag is received. So there will be no unnecessary data blocks written out to ephemeris file.
            Fix should be in 2013-04-04 build.

            Show
            gmatloj Linda Jun added a comment - Changed not to write comments other than events. Changed to ignore end of block flag and continue until end of run flag is received. So there will be no unnecessary data blocks written out to ephemeris file. Fix should be in 2013-04-04 build.
            Hide
            shughes Steven Hughes added a comment - - edited

            There is still an issue. Here is how to duplicate it but note that you will need the SPICE toolkit

            1) Run the script named CreateSPKStressTest.script
            2) Run the spacit SPICE utility on the kernel produced by GMAT
            3) Below is what I see from the utility.

            The second to last segment has this end time:
            UTC Stop Time : 2000 JAN 04 13:38:34.066
            The last segment has this start time:
            UTC Start Time : 2000 JAN 04 13:39:34.066

            Notice they are different by one minute but should should be the same.

            ********************************************************************************
             
            Summary for SPK file: SPICEStressTest22.bsp
            Leapseconds File    : naif0010.tls
            Summary Type        : Entire File
             
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 01 11:59:28.000
               UTC Stop Time  : 2000 JAN 02 03:29:45.600
               ET Start Time  : 2000 JAN 01 12:00:32.183
               ET Stop time   : 2000 JAN 02 03:30:49.783
            --------------------------------------------------------------------------------
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 02 03:29:45.600
               UTC Stop Time  : 2000 JAN 02 15:29:02.400
               ET Start Time  : 2000 JAN 02 03:30:49.783
               ET Stop time   : 2000 JAN 02 15:30:06.583
            --------------------------------------------------------------------------------
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 02 15:29:02.400
               UTC Stop Time  : 2000 JAN 03 12:16:24.549
               ET Start Time  : 2000 JAN 02 15:30:06.583
               ET Stop time   : 2000 JAN 03 12:17:28.733
            --------------------------------------------------------------------------------
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 03 12:16:24.549
               UTC Stop Time  : 2000 JAN 04 05:12:34.066
               ET Start Time  : 2000 JAN 03 12:17:28.733
               ET Stop time   : 2000 JAN 04 05:13:38.249
            --------------------------------------------------------------------------------
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 04 05:13:34.066
               UTC Stop Time  : 2000 JAN 04 11:12:34.066
               ET Start Time  : 2000 JAN 04 05:14:38.249
               ET Stop time   : 2000 JAN 04 11:13:38.249
            --------------------------------------------------------------------------------
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 04 11:13:34.066
               UTC Stop Time  : 2000 JAN 04 12:35:54.066
               ET Start Time  : 2000 JAN 04 11:14:38.249
               ET Stop time   : 2000 JAN 04 12:36:58.249
            --------------------------------------------------------------------------------
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 04 12:36:54.066
               UTC Stop Time  : 2000 JAN 04 13:38:34.066
               ET Start Time  : 2000 JAN 04 12:37:58.249
               ET Stop time   : 2000 JAN 04 13:39:38.249
            --------------------------------------------------------------------------------
            --------------------------------------------------------------------------------
               Segment ID     : SPK_SEGMENT
               Target Body    : Body -123456789
               Center Body    : Body 399, EARTH
               Reference frame: Frame 1, J2000
               SPK Data Type  : Type 13
                  Description : Discrete States, Unevenly Spaced, Hermite Interpolation
               UTC Start Time : 2000 JAN 04 13:39:34.066
               UTC Stop Time  : 2000 JAN 04 14:53:34.066
               ET Start Time  : 2000 JAN 04 13:40:38.249
               ET Stop time   : 2000 JAN 04 14:54:38.249
            --------------------------------------------------------------------------------
             
            ********************************************************************************
            
            Show
            shughes Steven Hughes added a comment - - edited There is still an issue. Here is how to duplicate it but note that you will need the SPICE toolkit 1) Run the script named CreateSPKStressTest.script 2) Run the spacit SPICE utility on the kernel produced by GMAT 3) Below is what I see from the utility. The second to last segment has this end time: UTC Stop Time : 2000 JAN 04 13:38:34.066 The last segment has this start time: UTC Start Time : 2000 JAN 04 13:39:34.066 Notice they are different by one minute but should should be the same. ******************************************************************************** Summary for SPK file: SPICEStressTest22.bsp Leapseconds File : naif0010.tls Summary Type : Entire File -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 01 11:59:28.000 UTC Stop Time : 2000 JAN 02 03:29:45.600 ET Start Time : 2000 JAN 01 12:00:32.183 ET Stop time : 2000 JAN 02 03:30:49.783 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 02 03:29:45.600 UTC Stop Time : 2000 JAN 02 15:29:02.400 ET Start Time : 2000 JAN 02 03:30:49.783 ET Stop time : 2000 JAN 02 15:30:06.583 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 02 15:29:02.400 UTC Stop Time : 2000 JAN 03 12:16:24.549 ET Start Time : 2000 JAN 02 15:30:06.583 ET Stop time : 2000 JAN 03 12:17:28.733 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 03 12:16:24.549 UTC Stop Time : 2000 JAN 04 05:12:34.066 ET Start Time : 2000 JAN 03 12:17:28.733 ET Stop time : 2000 JAN 04 05:13:38.249 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 04 05:13:34.066 UTC Stop Time : 2000 JAN 04 11:12:34.066 ET Start Time : 2000 JAN 04 05:14:38.249 ET Stop time : 2000 JAN 04 11:13:38.249 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 04 11:13:34.066 UTC Stop Time : 2000 JAN 04 12:35:54.066 ET Start Time : 2000 JAN 04 11:14:38.249 ET Stop time : 2000 JAN 04 12:36:58.249 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 04 12:36:54.066 UTC Stop Time : 2000 JAN 04 13:38:34.066 ET Start Time : 2000 JAN 04 12:37:58.249 ET Stop time : 2000 JAN 04 13:39:38.249 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Segment ID : SPK_SEGMENT Target Body : Body -123456789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 13 Description : Discrete States, Unevenly Spaced, Hermite Interpolation UTC Start Time : 2000 JAN 04 13:39:34.066 UTC Stop Time : 2000 JAN 04 14:53:34.066 ET Start Time : 2000 JAN 04 13:40:38.249 ET Stop time : 2000 JAN 04 14:54:38.249 -------------------------------------------------------------------------------- ********************************************************************************
            Hide
            djcinsb Darrel Conway added a comment -

            This looked like an issue when the interpolator was restarted for a change in maneuvering state. I added a flag so that a maneuver state change forces a write of the initial trajectory point, and the reported issue looks like it is fixed. The committed tests scripts all run successfully as well. This change would benefit from some additional checks made by a user playing with written ephem files – both CCSDS and SPICE based – to be sure that I haven't introduced some unwanted feature.

            In other words, it looks good to me, but I might not know what to look for!

            Show
            djcinsb Darrel Conway added a comment - This looked like an issue when the interpolator was restarted for a change in maneuvering state. I added a flag so that a maneuver state change forces a write of the initial trajectory point, and the reported issue looks like it is fixed. The committed tests scripts all run successfully as well. This change would benefit from some additional checks made by a user playing with written ephem files – both CCSDS and SPICE based – to be sure that I haven't introduced some unwanted feature. In other words, it looks good to me, but I might not know what to look for!
            Hide
            shughes Steven Hughes added a comment -

            The second to last chunk in CCSDS file created from this script is missing the last line.

            Show
            shughes Steven Hughes added a comment - The second to last chunk in CCSDS file created from this script is missing the last line.
            Hide
            djcinsb Darrel Conway added a comment -

            One additional issue: in the code change, line 4111 reads

               justManeuvered == false;
            

            but should be

               justManeuvered = false;
            

            Since this seems to not be a release issue, I'll commit the change after the R2013a code is tagged. (Note: This might be the issue that reopened the bug)

            Show
            djcinsb Darrel Conway added a comment - One additional issue: in the code change, line 4111 reads justManeuvered == false; but should be justManeuvered = false; Since this seems to not be a release issue, I'll commit the change after the R2013a code is tagged. (Note: This might be the issue that reopened the bug)
            Hide
            gmatloj Linda Jun added a comment -

            Fixed to finish up writing when propagator changes. Correctly set the first time writing flag for SPICE file so that data can be written continuously.

            Show
            gmatloj Linda Jun added a comment - Fixed to finish up writing when propagator changes. Correctly set the first time writing flag for SPICE file so that data can be written continuously.

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 3 hours
                  2d 3h