Modifier and Type | Class and Description |
---|---|
static class |
SGP4utils.MDHMS |
Modifier and Type | Field and Description |
---|---|
static char |
OPSMODE_AFSPC |
static char |
OPSMODE_IMPROVED |
static double |
pi |
Constructor and Description |
---|
SGP4utils() |
Modifier and Type | Method and Description |
---|---|
static double |
angle(double[] vec1,
double[] vec2) |
static double |
asinh(double xval) |
static void |
cross(double[] vec1,
double[] vec2,
double[] outvec) |
static SGP4utils.MDHMS |
days2mdhms(int year,
double days) |
static double |
dot(double[] x,
double[] y) |
static double[] |
invjday(double jd)
-----------------------------------------------------------------------------
procedure invjday
this procedure finds the year, month, day, hour, minute and second
given the julian date. tu can be ut1, tdt, tdb, etc.
|
static double |
jday(int year,
int mon,
int day,
int hr,
int minute,
double sec)
-----------------------------------------------------------------------------
procedure jday
this procedure finds the julian date given the year, month, day, and time.
|
static double |
mag(double[] x) |
static double[] |
newtonnu(double ecc,
double nu)
-----------------------------------------------------------------------------
function newtonnu
this function solves keplers equation when the true anomaly is known.
|
protected static double |
readFloatFromString(String inStr)
Read float data from a string
|
private static boolean |
readLine1(String line1,
SGP4SatData satrec) |
private static boolean |
readLine2(String line2,
SGP4SatData satrec) |
static boolean |
readTLEandIniSGP4(String satName,
String line1,
String line2,
char opsmode,
SGP4unit.Gravconsttype whichconst,
SGP4SatData satrec)
Reads the data from the TLE and initializes the SGP4 propogator variables and stores them in the SGP4unit.Gravconsttype object
DOES NOT PERFORM ANY INTERNAL CHECK BEYOND BASICS OF THE TLE DATA use other methods to do that if desired.
|
static double[] |
rv2coe(double[] r,
double[] v,
double mu)
-----------------------------------------------------------------------------
function rv2coe
this function finds the classical orbital elements given the geocentric
equatorial position and velocity vectors.
|
public static double pi
public static char OPSMODE_AFSPC
public static char OPSMODE_IMPROVED
public SGP4utils()
public static boolean readTLEandIniSGP4(String satName, String line1, String line2, char opsmode, SGP4unit.Gravconsttype whichconst, SGP4SatData satrec)
satName
- line1
- TLE line 1line2
- TLE line 2opsmode
- whichconst
- which constants to use in propogationsatrec
- object to store the SGP4 dataprivate static boolean readLine1(String line1, SGP4SatData satrec) throws Exception
Exception
private static boolean readLine2(String line2, SGP4SatData satrec) throws Exception
Exception
protected static double readFloatFromString(String inStr) throws Exception
inStr
- Exception
public static double jday(int year, int mon, int day, int hr, int minute, double sec)
year
- mon
- day
- hr
- minute
- sec
- public static SGP4utils.MDHMS days2mdhms(int year, double days)
public static double[] invjday(double jd)
jd
- public static double[] rv2coe(double[] r, double[] v, double mu)
r
- v
- mu
- public static double[] newtonnu(double ecc, double nu)
ecc
- nu
- public static double asinh(double xval)
public static double mag(double[] x)
public static void cross(double[] vec1, double[] vec2, double[] outvec)
public static double dot(double[] x, double[] y)
public static double angle(double[] vec1, double[] vec2)