Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guilhem Bonnefille
Orekit
Commits
6bc05440
Commit
6bc05440
authored
Dec 04, 2020
by
Luc Maisonobe
Browse files
Set AGI LeapSecond.dat file loader as one of the defaults loaders.
parent
0799a0ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/orekit/time/LazyLoadedTimeScales.java
View file @
6bc05440
...
...
@@ -113,12 +113,13 @@ public class LazyLoadedTimeScales extends AbstractTimeScales {
* Add the default loaders for UTC-TAI offsets history files (both IERS and USNO).
* <p>
* The default loaders are {@link TAIUTCDatFilesLoader} that looks for a file named
* {@code tai-utc.dat} that must be in USNO format and {@link
* UTCTAIHistoryFilesLoader} that looks fir a file named {@code UTC-TAI.history} that
* must be in the IERS format. The {@link UTCTAIBulletinAFilesLoader} is
* <em>not</em> added by default as it is not recommended. USNO warned us that
* the TAI-UTC data present in bulletin A was for convenience only and was not
* reliable, there have been errors in several bulletins regarding these data.
* {@code tai-utc.dat} that must be in USNO format, {@link
* UTCTAIHistoryFilesLoader} that looks for a file named {@code UTC-TAI.history} that
* must be in the IERS format and {@link AGILeapSecondFilesLoader} that looks for a
* files named {@code LeapSecond.dat} that must be in AGI format. The {@link
* UTCTAIBulletinAFilesLoader} is<em>not</em> added by default as it is not recommended.
* USNO warned us that the TAI-UTC data present in bulletin A was for convenience only
* and was not reliable, there have been errors in several bulletins regarding these data.
* </p>
*
* @see <a href="http://maia.usno.navy.mil/ser7/tai-utc.dat">USNO tai-utc.dat
...
...
@@ -127,6 +128,7 @@ public class LazyLoadedTimeScales extends AbstractTimeScales {
* UTC-TAI.history file</a>
* @see TAIUTCDatFilesLoader
* @see UTCTAIHistoryFilesLoader
* @see AGILeapSecondFilesLoader
* @see #getUTC()
* @see #clearUTCTAIOffsetsLoaders()
* @since 7.1
...
...
@@ -137,6 +139,7 @@ public class LazyLoadedTimeScales extends AbstractTimeScales {
lazyLoadedEop
.
getDataProvidersManager
();
addUTCTAIOffsetsLoader
(
new
TAIUTCDatFilesLoader
(
TAIUTCDatFilesLoader
.
DEFAULT_SUPPORTED_NAMES
,
dataProvidersManager
));
addUTCTAIOffsetsLoader
(
new
UTCTAIHistoryFilesLoader
(
dataProvidersManager
));
addUTCTAIOffsetsLoader
(
new
AGILeapSecondFilesLoader
(
AGILeapSecondFilesLoader
.
DEFAULT_SUPPORTED_NAMES
,
dataProvidersManager
));
}
}
...
...
src/test/java/org/orekit/time/AGILeapSecondFilesLoaderTest.java
View file @
6bc05440
...
...
@@ -30,7 +30,6 @@ public class AGILeapSecondFilesLoaderTest {
public
void
testRegularFile
()
{
Utils
.
setDataRoot
(
"AGI"
);
TimeScalesFactory
.
addUTCTAIOffsetsLoader
(
new
AGILeapSecondFilesLoader
(
AGILeapSecondFilesLoader
.
DEFAULT_SUPPORTED_NAMES
));
// we arbitrary put UTC == TAI before 1961-01-01
checkOffset
(
1950
,
1
,
1
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment