Package org.orekit.time
Class OffsetModel
- java.lang.Object
-
- org.orekit.time.OffsetModel
-
public class OffsetModel extends Object
TAI UTC offset model.- Since:
- 7.1
- Author:
- Luc Maisonobe
- See Also:
UTCTAIOffsetsLoader
-
-
Constructor Summary
Constructors Constructor Description OffsetModel(DateComponents start, int offset)
Constructor for a constant offset model.OffsetModel(DateComponents start, int mjdRef, double offset, double slope)
Constructor for a linear offset model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMJDRef()
Get the reference date of the linear model as a modified julian day.double
getOffset()
Offset at reference date in seconds (TAI minus UTC).double
getSlope()
Offset slope in seconds per UTC day (TAI minus UTC / dUTC).DateComponents
getStart()
Get the date of the offset start.
-
-
-
Constructor Detail
-
OffsetModel
public OffsetModel(DateComponents start, int mjdRef, double offset, double slope)
Constructor for a linear offset model.These models were used prior to 1972.
- Parameters:
start
- date of the offset startmjdRef
- reference date of the linear model as a modified julian dayoffset
- offset at reference date in seconds (TAI minus UTC)slope
- offset slope in seconds per UTC day (TAI minus UTC / dUTC)
-
OffsetModel
public OffsetModel(DateComponents start, int offset)
Constructor for a constant offset model.These models are used since 1972.
- Parameters:
start
- date of the offset startoffset
- offset at reference date in seconds (TAI minus UTC)
-
-
Method Detail
-
getStart
public DateComponents getStart()
Get the date of the offset start.- Returns:
- date of the offset start
-
getMJDRef
public int getMJDRef()
Get the reference date of the linear model as a modified julian day.- Returns:
- reference date of the linear model as a modified julian day
-
getOffset
public double getOffset()
Offset at reference date in seconds (TAI minus UTC).- Returns:
- offset at reference date in seconds (TAI minus UTC)
-
getSlope
public double getSlope()
Offset slope in seconds per UTC day (TAI minus UTC / dUTC).- Returns:
- offset slope in seconds per UTC day (TAI minus UTC / dUTC)
-
-