org.orekit.time
Class LocalTime

java.lang.Object
  extended by org.orekit.time.LocalTime

public class LocalTime
extends Object

This class provides methods to compute local time.

Since:
3.0
Version:
$Id: LocalTime.java 13352 2015-05-13 15:33:59Z bignon $
Author:
Emmanuel Bignon
Concurrency :
not thread-safe

Constructor Summary
LocalTime(PVCoordinatesProvider sunEphemeris)
          Constructor
 
Method Summary
 double computeMeanLocalTime(AbsoluteDate date, Vector3D pos)
          Compute mean local time in TIRF frame.
 double computeMeanLocalTime(AbsoluteDate date, Vector3D pos, Frame frame, double sideralTime)
          Compute mean local time in provided frame.
 double computeTrueLocalTime(AbsoluteDate date, Vector3D pos)
          Compute true local time in TIRF frame.
 double computeTrueLocalTime(AbsoluteDate date, Vector3D pos, Frame frame)
          Compute true local time in provided frame in the range ] -43200s; 43200s ].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalTime

public LocalTime(PVCoordinatesProvider sunEphemeris)
Constructor

Parameters:
sunEphemeris - Sun ephemeris
Method Detail

computeTrueLocalTime

public double computeTrueLocalTime(AbsoluteDate date,
                                   Vector3D pos,
                                   Frame frame)
                            throws OrekitException
Compute true local time in provided frame in the range ] -43200s; 43200s ].

Parameters:
date - date
pos - position in provided frame frame
frame - frame in which true local time will be returned
Returns:
true local time in provided frame (in s)
Throws:
OrekitException - thrown if Sun PV coordinates could not be retrieved

computeTrueLocalTime

public double computeTrueLocalTime(AbsoluteDate date,
                                   Vector3D pos)
                            throws OrekitException
Compute true local time in TIRF frame.

Parameters:
date - date
pos - position in TIRF frame
Returns:
true local time in TIRF (in s)
Throws:
OrekitException - thrown if TIRF frame could not be retrieved or Sun PV coordinates could not be retrieved

computeMeanLocalTime

public double computeMeanLocalTime(AbsoluteDate date,
                                   Vector3D pos,
                                   Frame frame,
                                   double sideralTime)
                            throws OrekitException
Compute mean local time in provided frame.

Parameters:
date - date
pos - position in provided frame
frame - frame in which mean local time will be returned
sideralTime - sideral time expressed in provided frame (in rad)
Returns:
mean local time in provided frame (in s)
Throws:
OrekitException - thrown if true local time could not be computed

computeMeanLocalTime

public double computeMeanLocalTime(AbsoluteDate date,
                                   Vector3D pos)
                            throws OrekitException
Compute mean local time in TIRF frame.

Parameters:
date - date
pos - position in provided frame
Returns:
mean local time in TIRF frame (in s)
Throws:
OrekitException - thrown if true local time or equation of time could not be computed


Copyright © 2016 CNES. All Rights Reserved.