[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orekit Users] Issue with EventState/Propagator/Elevation Detector - HELP!!



In order to track the event history you'll want to wrap it in an event logger.  You can then post-process the logged events to determine if you are coming into or going out of an event threshold.  The example should probably have something along those lines to be able to show how to get that data.  

https://www.orekit.org/site-orekit-8.0/apidocs/org/orekit/propagation/events/EventsLogger.html
 Propagator propagator = new XyzPropagator(...);
 EventsLogger logger = new EventsLogger();
 EventDetector detector = new UvwDetector(...);
 propagator.addEventDetector(logger.monitorDetector(detector));

On Mon, May 1, 2017 at 2:47 PM, <schatzman-james@n-ask.com> wrote:
Update-

Well, this was mostly my fault. I did not understand the order of events in
the Propagator and detection sequence. There does not seem to be any mechanism
to record the elevation at the critical times event ElevationDetector events
are detected, although they are close to the set threshold. The
EventState.evaluateStep method finds the critical time (e.g., when the
elevation rises above or falls below the critical inclination) and records it
in pendingEventTime/getEventDate(). However, the actual elevation at that time
is not recorded.

Another issue is what happens when the threshold is exceeded at either end of
the propagation interval. That starting or ending interval is not recorded by
the tutorial EventHandler.

In other words, if what you want is a complete list of all periods between the
current date and the propagate end date where the elevation exceeds the
threshold, the tutorial code will not do this because it does not report
intervals that include either the initial or the final propagation date. It
appears that events should be generated at the initial and final propagation
dates for any elevations exceeding the threshold.