org.jscience.astronomy.solarsystem
Class AstronomicalCoordinatesUtils

java.lang.Object
  extended by org.jscience.astronomy.solarsystem.AstronomicalCoordinatesUtils

public final class AstronomicalCoordinatesUtils
extends java.lang.Object

The AstronomicalCoordinatesUtils class provides useful astronomical coordinates computation related methods.


Constructor Summary
AstronomicalCoordinatesUtils()
           
 
Method Summary
static void convertEclipticElementsFK4toFK5(double[] I_w_omega)
           
static void convertEclipticElementsFK5toFK4(double[] I_w_omega)
           
static void convertEclipticToEquatorial(double[] site)
           
static void convertEclipticToRadec(double[] latlong, double[] radec)
           
static void convertEquatorialRectangularB1950toJ2000(double[] r)
           
static void convertEquatorialRectangularJ2000ToB1950(double[] r)
           
static void convertEquatorialToEcliptic(double[] site)
           
static void convertHeliocentricPositionVectorToEclipticLatLong(double[] r, double[] site, double[] latlong)
           
 void convertKeplerianElementsToStateVectorForAsteroidEphemeris(double[] classical_elements, double[] r, double[] rprime, double jultime1)
           
static void convertRadecB1950toJ2000(double[] radec, double jd_epoch)
           
static void convertRadecJ2000toB1950(double[] radec, double jd_epoch)
           
static void convertRadectoEcliptic(double[] radec, double[] latlong)
           
 void convertStateVectorToKeplerianElements(double[] r, double[] rprime, double[] classical_elements, double jultime1)
           
static double convertTDBToTDT(double tdb_time, double latitude, double longitude, double altitude, double ut1_minus_tai)
           
static double convertTDTtoTDB(double tdt_time, double latitude, double longitude, double altitude, double ut1_minus_tai)
           
static double getBesselInterpolation(double f_1, double f0, double fp1, double fp2, double time)
           
static double[] getCalendarFields(double jultime)
           
static java.util.GregorianCalendar getCalendarFieldsAsDate(double jultime)
           
static double getJulianDay(boolean Gregorian, int year, int month, int day, int hour, int minute, double second)
           
static double getJulianDay(java.util.GregorianCalendar calendar)
           
static double getJulianEquinox(double standard_equinox, boolean julian)
           
static double getLeapSecond(double jultime)
           
static double getMeanSiderealTime(double tdt_time, double delta_t, double longitude)
           
static void getNutation(double jultime, double[] nutation_vector)
           
static void getNutationIAU1980(double jultime, double[] nutation_vector)
           
static void getPrecession(double[] radec, double jdequinox_in, double jdequinox_out, boolean FK5)
           
static void getRectangularEquatorialPrecession(double[] site, double jultime1, double jultime2, boolean FK5)
           
 double hyperbolicKeplerSolver(double e, double mean)
           
 double keplerSolver(double e, double mean)
           
static void precessionMatrix(double jultime, double[][] matrix_P)
           
 void precessKeplerianElements(double[] I_w_omega, double jd_equinox1, double jd_equinox2, boolean FK5)
           
static void twoBodyUpdate(double[] r1, double[] r1prime, double time1, double[] r2, double[] r2prime, double time2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AstronomicalCoordinatesUtils

public AstronomicalCoordinatesUtils()
Method Detail

getBesselInterpolation

public static double getBesselInterpolation(double f_1,
                                            double f0,
                                            double fp1,
                                            double fp2,
                                            double time)

precessionMatrix

public static void precessionMatrix(double jultime,
                                    double[][] matrix_P)

getNutationIAU1980

public static void getNutationIAU1980(double jultime,
                                      double[] nutation_vector)

getNutation

public static void getNutation(double jultime,
                               double[] nutation_vector)

getPrecession

public static void getPrecession(double[] radec,
                                 double jdequinox_in,
                                 double jdequinox_out,
                                 boolean FK5)

getMeanSiderealTime

public static double getMeanSiderealTime(double tdt_time,
                                         double delta_t,
                                         double longitude)

getCalendarFields

public static double[] getCalendarFields(double jultime)

getCalendarFieldsAsDate

public static java.util.GregorianCalendar getCalendarFieldsAsDate(double jultime)

getJulianDay

public static double getJulianDay(boolean Gregorian,
                                  int year,
                                  int month,
                                  int day,
                                  int hour,
                                  int minute,
                                  double second)

getJulianDay

public static double getJulianDay(java.util.GregorianCalendar calendar)

getJulianEquinox

public static double getJulianEquinox(double standard_equinox,
                                      boolean julian)

getLeapSecond

public static double getLeapSecond(double jultime)

convertEclipticElementsFK4toFK5

public static void convertEclipticElementsFK4toFK5(double[] I_w_omega)

convertEclipticElementsFK5toFK4

public static void convertEclipticElementsFK5toFK4(double[] I_w_omega)

convertTDBToTDT

public static double convertTDBToTDT(double tdb_time,
                                     double latitude,
                                     double longitude,
                                     double altitude,
                                     double ut1_minus_tai)

convertTDTtoTDB

public static double convertTDTtoTDB(double tdt_time,
                                     double latitude,
                                     double longitude,
                                     double altitude,
                                     double ut1_minus_tai)

convertRadectoEcliptic

public static void convertRadectoEcliptic(double[] radec,
                                          double[] latlong)

convertHeliocentricPositionVectorToEclipticLatLong

public static void convertHeliocentricPositionVectorToEclipticLatLong(double[] r,
                                                                      double[] site,
                                                                      double[] latlong)

convertEquatorialToEcliptic

public static void convertEquatorialToEcliptic(double[] site)

convertEclipticToEquatorial

public static void convertEclipticToEquatorial(double[] site)

convertEclipticToRadec

public static void convertEclipticToRadec(double[] latlong,
                                          double[] radec)

convertEquatorialRectangularJ2000ToB1950

public static void convertEquatorialRectangularJ2000ToB1950(double[] r)

convertEquatorialRectangularB1950toJ2000

public static void convertEquatorialRectangularB1950toJ2000(double[] r)

convertRadecJ2000toB1950

public static void convertRadecJ2000toB1950(double[] radec,
                                            double jd_epoch)

convertRadecB1950toJ2000

public static void convertRadecB1950toJ2000(double[] radec,
                                            double jd_epoch)

getRectangularEquatorialPrecession

public static void getRectangularEquatorialPrecession(double[] site,
                                                      double jultime1,
                                                      double jultime2,
                                                      boolean FK5)

twoBodyUpdate

public static void twoBodyUpdate(double[] r1,
                                 double[] r1prime,
                                 double time1,
                                 double[] r2,
                                 double[] r2prime,
                                 double time2)

precessKeplerianElements

public void precessKeplerianElements(double[] I_w_omega,
                                     double jd_equinox1,
                                     double jd_equinox2,
                                     boolean FK5)

convertStateVectorToKeplerianElements

public void convertStateVectorToKeplerianElements(double[] r,
                                                  double[] rprime,
                                                  double[] classical_elements,
                                                  double jultime1)

convertKeplerianElementsToStateVectorForAsteroidEphemeris

public void convertKeplerianElementsToStateVectorForAsteroidEphemeris(double[] classical_elements,
                                                                      double[] r,
                                                                      double[] rprime,
                                                                      double jultime1)

hyperbolicKeplerSolver

public double hyperbolicKeplerSolver(double e,
                                     double mean)

keplerSolver

public double keplerSolver(double e,
                           double mean)