Search in sources :

Example 1 with EOPHistoryLoader

use of org.orekit.frames.EOPHistoryLoader in project Orekit by CS-SI.

the class Utils method setLoaders.

public static void setLoaders(final IERSConventions conventions, final List<EOPEntry> eop) {
    clearFactoryMaps(FramesFactory.class);
    clearFactoryMaps(TimeScalesFactory.class);
    FramesFactory.addEOPHistoryLoader(conventions, new EOPHistoryLoader() {

        public void fillHistory(IERSConventions.NutationCorrectionConverter converter, SortedSet<EOPEntry> history) {
            history.addAll(eop);
        }
    });
}
Also used : IERSConventions(org.orekit.utils.IERSConventions) EOPEntry(org.orekit.frames.EOPEntry) EOPHistoryLoader(org.orekit.frames.EOPHistoryLoader)

Aggregations

EOPEntry (org.orekit.frames.EOPEntry)1 EOPHistoryLoader (org.orekit.frames.EOPHistoryLoader)1 IERSConventions (org.orekit.utils.IERSConventions)1