driver.ted.astro
Class T_SVEphemeris

java.lang.Object
  extended by driver.ted.astro.T_SVEphemeris
All Implemented Interfaces:
java.io.Serializable

public class T_SVEphemeris
extends java.lang.Object
implements java.io.Serializable

T_SVEphemeris Title: T_SVEphemeris Description: T_SVEphemeris calculates an SV ephemeris based upon the GPS SEM Almanac. The coordinates calculated are the cartesian coordinates in the ECEF frame. Copyright: (c) 2002 - 2006

Version:
1.2
Author:
Ted Driver
See Also:
Serialized Form

Constructor Summary
T_SVEphemeris(java.lang.String filename)
          Creates a new instance of T_SVEphemeris when supplied an almanac file name.
 
Method Summary
 double[][] getXYZ(long gpsTime, int weekNumber)
          Returns the double array of coordinates for each SV Returns all 32 rows of data, PRNs without data will have zeros in their fields the array should be accessed like this: data[PRN][0] = PRN X coordinate data[PRN][2] = PRN Y coordinate data[PRN][3] = PRN Z coordinate
static void main(java.lang.String[] args)
          Use this to test the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

T_SVEphemeris

public T_SVEphemeris(java.lang.String filename)
Creates a new instance of T_SVEphemeris when supplied an almanac file name.

Parameters:
filename - The SEM alnamac filename to open and read
Method Detail

getXYZ

public double[][] getXYZ(long gpsTime,
                         int weekNumber)
Returns the double array of coordinates for each SV Returns all 32 rows of data, PRNs without data will have zeros in their fields the array should be accessed like this: data[PRN][0] = PRN X coordinate data[PRN][2] = PRN Y coordinate data[PRN][3] = PRN Z coordinate

Parameters:
gpsTime - The time of week to use to evaluate the XYZ coordinates
weekNumber - The week number to use to evaluate the coordinates
Returns:
The two-dimensional double array of data of the XYZ coordinates for each PRN (1-32)

main

public static void main(java.lang.String[] args)
Use this to test the class

Parameters:
args - the command line arguments