Documentation of 'com.mhuss.AstroLib.PlanetData' Java class
PlanetData
com.mhuss.AstroLib

Class PlanetData



  • public class PlanetData
    extends java.lang.Object
    This class handles planetary motion calculations and conversions.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static double AU 
    • Constructor Summary

      Constructors 
      Constructor and Description
      PlanetData()
      Default constructor.
      PlanetData(int planet, double jd, double deltaT, ObsInfo oi)
      Explicit (all parameters) constructor.
      PlanetData(int planet, double jd, ObsInfo oi) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void calc(int planet, double jd, double deltaT, ObsInfo oi)
      Calculate the data for a given planet, julian day, and location.
      void calc(int planet, double jd, double deltaT, ObsInfo oi, boolean topoc_Corr, boolean lightT_Corr)
      Calculate the data for a given planet, julian day, and location.
      void calc(int planet, double jd, ObsInfo oi) 
      double calcLon(int planet, double jd, ObsInfo oi)
      This calculates all LocationElements, then returns the longitude.
      double getAltAzLat()
      Get the Alt-Az latitude.
      double getAltAzLon()
      Get the Alt-Az longitude.
      double getAltAzRadius()
      Get the Alt-Az radius.
      double getDeclination()
      Get the declination in radians.
      double getEclipticLat()
      Get the ecliptic latitude.
      double getEclipticLon()
      Get the ecliptic longitude.
      double getEclipticRadius()
      Get the ecliptic radius.
      LocationElements getEclipticXYZ()
      Get the geocentric ecliptic cartesian Coords x, y, z.
      double getEquatorialLat()
      Get the equatorial latitude (y).
      double getEquatorialLon()
      Get the equatorial longitude (x).
      double getEquatorialRadius()
      Get the equatorial radius (z).
      double getPolarLat()
      Get the polar latitude.
      double getPolarLon()
      Get the polar longitude.
      double getPolarRadius()
      Get the polar radius.
      double getRightAscension()
      Get the right ascension in radians.
      double getSolarLat()
      Get the Solar ecliptic latitude in radians (Geocentric ecliptical coordinates of the Sun, usually close to zero)
      double getSolarLon()
      Get the geocentric ecliptic longitude of the Sun in radians
      double getSolarRadius()
      Get the solar radius of the Earth.
      double hourAngle()
      Get the hour angle.
      double jd()
      Get the Julian day number.
      int planet()
      Get the Planets number.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlanetData

        public PlanetData()
        Default constructor.
      • PlanetData

        public PlanetData(int planet,
                          double jd,
                          double deltaT,
                          ObsInfo oi)
        Explicit (all parameters) constructor.
        Parameters:
        planet - Planet number (from Planets class)
        jd - Julian day number
        oi - Observer location
      • PlanetData

        public PlanetData(int planet,
                          double jd,
                          ObsInfo oi)
    • Method Detail

      • calcLon

        public double calcLon(int planet,
                              double jd,
                              ObsInfo oi)
        This calculates all LocationElements, then returns the longitude.
        Longitude is split out because it gets used most often.
        Parameters:
        planet - Planet number (from Planets class)
        jd - Julian day number
        oi - Observer location
      • calc

        public void calc(int planet,
                         double jd,
                         double deltaT,
                         ObsInfo oi)
        Calculate the data for a given planet, julian day, and location.
        This function must be called (directly or via constructor) before calling any of the other functions in this class.
        Parameters:
        planet - Planet number (from Planets class)
        jd - Julian day number
        oi - Observer location
      • calc

        public void calc(int planet,
                         double jd,
                         ObsInfo oi)
      • calc

        public void calc(int planet,
                         double jd,
                         double deltaT,
                         ObsInfo oi,
                         boolean topoc_Corr,
                         boolean lightT_Corr)
        Calculate the data for a given planet, julian day, and location.
        This function must be called (directly or via constructor) before calling any of the other functions in this class.
        Parameters:
        planet - Planet number (from Planets class)
        jd - Julian day number (tdt)
        deltaT - (in Days)
        oi - Observer location
        topoc_Corr - correct topocentric
        lightT_Corr - correct light time
      • planet

        public int planet()
        Get the Planets number. Example: Planets.MERCURY
      • getSolarLat

        public double getSolarLat()
                           throws NoInitException
        Get the Solar ecliptic latitude in radians (Geocentric ecliptical coordinates of the Sun, usually close to zero)
        Throws:
        NoInitException
      • getSolarLon

        public double getSolarLon()
                           throws NoInitException
        Get the geocentric ecliptic longitude of the Sun in radians
        Throws:
        NoInitException
      • getSolarRadius

        public double getSolarRadius()
                              throws NoInitException
        Get the solar radius of the Earth. (Distance Earth to Sun)
        Throws:
        NoInitException
      • getEclipticLat

        public double getEclipticLat()
                              throws NoInitException
        Get the ecliptic latitude. Mod. by Strickling, geocentric polar coordinates
        Throws:
        NoInitException
      • getEclipticLon

        public double getEclipticLon()
                              throws NoInitException
        Get the ecliptic longitude. Mod. by Strickling, geocentric polar coordinates in radians
        Throws:
        NoInitException
      • getEclipticRadius

        public double getEclipticRadius()
                                 throws NoInitException
        Get the ecliptic radius. Mod. by Strickling, Distance to Earth
        Throws:
        NoInitException
      • getEquatorialLat

        public double getEquatorialLat()
                                throws NoInitException
        Get the equatorial latitude (y). Cartesian Coord-System
        Throws:
        NoInitException
      • getEquatorialLon

        public double getEquatorialLon()
                                throws NoInitException
        Get the equatorial longitude (x). Cartesian Coord-System
        Throws:
        NoInitException
      • getEquatorialRadius

        public double getEquatorialRadius()
                                   throws NoInitException
        Get the equatorial radius (z). Cartesian Coord-System
        Throws:
        NoInitException
      • getAltAzLat

        public double getAltAzLat()
                           throws NoInitException
        Get the Alt-Az latitude. (Converted into polar coordinates)
        Throws:
        NoInitException
      • getAltAzLon

        public double getAltAzLon()
                           throws NoInitException
        Get the Alt-Az longitude. Radians, south is 0 deg (Converted into polar coordinates)
        Throws:
        NoInitException
      • getAltAzRadius

        public double getAltAzRadius()
                              throws NoInitException
        Get the Alt-Az radius. (Converted into polar coordinates)
        Throws:
        NoInitException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.