Package org.orekit.gnss
Class GPSAlmanac
- java.lang.Object
-
- org.orekit.gnss.GPSAlmanac
-
- All Implemented Interfaces:
GPSOrbitalElements,TimeStamped
public class GPSAlmanac extends Object implements GPSOrbitalElements
This class holds a GPS almanac as read from SEM or YUMA files.Depending on the source (SEM or YUMA), some fields may be filled in or not. An almanac read from a YUMA file doesn't hold SVN number, average URA and satellite configuration.
- Since:
- 8.0
- Author:
- Pascal Parraud
-
-
Field Summary
-
Fields inherited from interface org.orekit.propagation.analytical.gnss.GPSOrbitalElements
GPS_MU, GPS_PI, GPS_WEEK_IN_SECONDS, GPS_WEEK_NB
-
-
Constructor Summary
Constructors Constructor Description GPSAlmanac(String source, int prn, int svn, int week, double toa, double sqa, double ecc, double inc, double om0, double dom, double aop, double anom, double af0, double af1, int health, int ura, int config)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAf0()Gets the Zeroth Order Clock Correction.doublegetAf1()Gets the First Order Clock Correction.doublegetCic()Gets the Amplitude of the Cosine Harmonic Correction Term to the Angle of Inclination.doublegetCis()Gets the Amplitude of the Sine Harmonic Correction Term to the Angle of Inclination.doublegetCrc()Gets the Amplitude of the Cosine Harmonic Correction Term to the Orbit Radius.doublegetCrs()Gets the Amplitude of the Sine Harmonic Correction Term to the Orbit Radius.doublegetCuc()Gets the Amplitude of the Cosine Harmonic Correction Term to the Argument of Latitude.doublegetCus()Gets the Amplitude of the Sine Harmonic Correction Term to the Argument of Latitude.AbsoluteDategetDate()Get the date.doublegetE()Gets the Eccentricity.intgetHealth()Gets the Health status.doublegetI0()Gets the Inclination Angle at Reference Time.doublegetIDot()Gets the Rate of Inclination Angle.doublegetM0()Gets the Mean Anomaly at Reference Time.doublegetMeanMotion()Gets the Mean Motion.doublegetOmega0()Gets the Longitude of Ascending Node of Orbit Plane at Weekly Epoch.doublegetOmegaDot()Gets the Rate of Right Ascension.doublegetPa()Gets the Argument of Perigee.intgetPRN()Gets the PRN number of the GPS satellite.intgetSatConfiguration()Gets the satellite configuration.doublegetSma()Gets the Semi-Major Axis.StringgetSource()Gets the source of this GPS almanac.intgetSVN()Gets the satellite "SVN" reference number.doublegetTime()Gets the Reference Time of the GPS orbit as a duration from week start.intgetURA()Gets the average URA number.intgetWeek()Gets the Reference Week of the GPS orbit.
-
-
-
Constructor Detail
-
GPSAlmanac
public GPSAlmanac(String source, int prn, int svn, int week, double toa, double sqa, double ecc, double inc, double om0, double dom, double aop, double anom, double af0, double af1, int health, int ura, int config)
Constructor.- Parameters:
source- the source of the almanac (SEM, YUMA, user defined)prn- the PRN numbersvn- the SVN numberweek- the GPS weektoa- the Time of Applicabilitysqa- the Square Root of Semi-Major Axis (m^1/2)ecc- the eccentricityinc- the inclination (rad)om0- the geographic longitude of the orbital plane at the weekly epoch (rad)dom- the Rate of Right Ascension (rad/s)aop- the Argument of Perigee (rad)anom- the Mean Anomaly (rad)af0- the Zeroth Order Clock Correction (s)af1- the First Order Clock Correction (s/s)health- the Health statusura- the average URAconfig- the satellite configuration
-
-
Method Detail
-
getDate
public AbsoluteDate getDate()
Description copied from interface:TimeStampedGet the date.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date attached to the object
-
getSource
public String getSource()
Gets the source of this GPS almanac.Sources can be SEM or YUMA, when the almanac is read from a file.
- Returns:
- the source of this GPS almanac
-
getPRN
public int getPRN()
Description copied from interface:GPSOrbitalElementsGets the PRN number of the GPS satellite.- Specified by:
getPRNin interfaceGPSOrbitalElements- Returns:
- the PRN number of the GPS satellite
-
getSVN
public int getSVN()
Gets the satellite "SVN" reference number.- Returns:
- the satellite "SVN" reference number
-
getWeek
public int getWeek()
Description copied from interface:GPSOrbitalElementsGets the Reference Week of the GPS orbit.- Specified by:
getWeekin interfaceGPSOrbitalElements- Returns:
- the Reference Week of the GPS orbit within [0, 1024[
-
getTime
public double getTime()
Description copied from interface:GPSOrbitalElementsGets the Reference Time of the GPS orbit as a duration from week start.- Specified by:
getTimein interfaceGPSOrbitalElements- Returns:
- the Reference Time of the GPS orbit (s)
-
getSma
public double getSma()
Description copied from interface:GPSOrbitalElementsGets the Semi-Major Axis.- Specified by:
getSmain interfaceGPSOrbitalElements- Returns:
- the Semi-Major Axis (m)
-
getMeanMotion
public double getMeanMotion()
Description copied from interface:GPSOrbitalElementsGets the Mean Motion.- Specified by:
getMeanMotionin interfaceGPSOrbitalElements- Returns:
- the Mean Motion (rad/s)
-
getE
public double getE()
Description copied from interface:GPSOrbitalElementsGets the Eccentricity.- Specified by:
getEin interfaceGPSOrbitalElements- Returns:
- the Eccentricity
-
getI0
public double getI0()
Description copied from interface:GPSOrbitalElementsGets the Inclination Angle at Reference Time.- Specified by:
getI0in interfaceGPSOrbitalElements- Returns:
- the Inclination Angle at Reference Time (rad)
-
getIDot
public double getIDot()
Description copied from interface:GPSOrbitalElementsGets the Rate of Inclination Angle.- Specified by:
getIDotin interfaceGPSOrbitalElements- Returns:
- the Rate of Inclination Angle (rad/s)
-
getOmega0
public double getOmega0()
Description copied from interface:GPSOrbitalElementsGets the Longitude of Ascending Node of Orbit Plane at Weekly Epoch.- Specified by:
getOmega0in interfaceGPSOrbitalElements- Returns:
- the Longitude of Ascending Node of Orbit Plane at Weekly Epoch (rad)
-
getOmegaDot
public double getOmegaDot()
Description copied from interface:GPSOrbitalElementsGets the Rate of Right Ascension.- Specified by:
getOmegaDotin interfaceGPSOrbitalElements- Returns:
- the Rate of Right Ascension (rad/s)
-
getPa
public double getPa()
Description copied from interface:GPSOrbitalElementsGets the Argument of Perigee.- Specified by:
getPain interfaceGPSOrbitalElements- Returns:
- the Argument of Perigee (rad)
-
getM0
public double getM0()
Description copied from interface:GPSOrbitalElementsGets the Mean Anomaly at Reference Time.- Specified by:
getM0in interfaceGPSOrbitalElements- Returns:
- the Mean Anomaly at Reference Time (rad)
-
getCuc
public double getCuc()
Description copied from interface:GPSOrbitalElementsGets the Amplitude of the Cosine Harmonic Correction Term to the Argument of Latitude.- Specified by:
getCucin interfaceGPSOrbitalElements- Returns:
- the Amplitude of the Cosine Harmonic Correction Term to the Argument of Latitude (rad)
-
getCus
public double getCus()
Description copied from interface:GPSOrbitalElementsGets the Amplitude of the Sine Harmonic Correction Term to the Argument of Latitude.- Specified by:
getCusin interfaceGPSOrbitalElements- Returns:
- the Amplitude of the Sine Harmonic Correction Term to the Argument of Latitude (rad)
-
getCrc
public double getCrc()
Description copied from interface:GPSOrbitalElementsGets the Amplitude of the Cosine Harmonic Correction Term to the Orbit Radius.- Specified by:
getCrcin interfaceGPSOrbitalElements- Returns:
- the Amplitude of the Cosine Harmonic Correction Term to the Orbit Radius (m)
-
getCrs
public double getCrs()
Description copied from interface:GPSOrbitalElementsGets the Amplitude of the Sine Harmonic Correction Term to the Orbit Radius.- Specified by:
getCrsin interfaceGPSOrbitalElements- Returns:
- the Amplitude of the Sine Harmonic Correction Term to the Orbit Radius (m)
-
getCic
public double getCic()
Description copied from interface:GPSOrbitalElementsGets the Amplitude of the Cosine Harmonic Correction Term to the Angle of Inclination.- Specified by:
getCicin interfaceGPSOrbitalElements- Returns:
- the Amplitude of the Cosine Harmonic Correction Term to the Angle of Inclination (rad)
-
getCis
public double getCis()
Description copied from interface:GPSOrbitalElementsGets the Amplitude of the Sine Harmonic Correction Term to the Angle of Inclination.- Specified by:
getCisin interfaceGPSOrbitalElements- Returns:
- the Amplitude of the Sine Harmonic Correction Term to the Angle of Inclination (rad)
-
getAf0
public double getAf0()
Description copied from interface:GPSOrbitalElementsGets the Zeroth Order Clock Correction.- Specified by:
getAf0in interfaceGPSOrbitalElements- Returns:
- the Zeroth Order Clock Correction (s)
- See Also:
GPSOrbitalElements.getAf1(),GPSOrbitalElements.getAf2(),GPSOrbitalElements.getToc()
-
getAf1
public double getAf1()
Description copied from interface:GPSOrbitalElementsGets the First Order Clock Correction.- Specified by:
getAf1in interfaceGPSOrbitalElements- Returns:
- the First Order Clock Correction (s/s)
- See Also:
GPSOrbitalElements.getAf0(),GPSOrbitalElements.getAf2(),GPSOrbitalElements.getToc()
-
getHealth
public int getHealth()
Gets the Health status.- Returns:
- the Health status
-
getURA
public int getURA()
Gets the average URA number.- Returns:
- the average URA number
-
getSatConfiguration
public int getSatConfiguration()
Gets the satellite configuration.- Returns:
- the satellite configuration
-
-