astro.calc
Class DeadReckoning

java.lang.Object
  |
  +--astro.calc.DeadReckoning

public class DeadReckoning
extends java.lang.Object

Astronomical Navigation Tools.
Dead Reckoning : Estimated Altitude et Azimuth.
This is a Java Bean.
Input parameters :

Output data : Test with : Result should be This call only performs calculations. No user interface is provided.


Field Summary
static int LOWER_LIMB
           
static int UPPER_LIMB
           
 
Constructor Summary
DeadReckoning()
          Constructor.
DeadReckoning(double dAHG, double dD, double dL, double dG)
          Constructor.
 
Method Summary
 void calculate()
          Performs the required calculations, after the AHG, D, L and G.
 double correctedAltitude(double calculatedAltitude, double eyeHeight, double hp, double sd, int limb)
          Returns the corrected Altitude of a celestial body
We left in stand by for now:
  • Oblate Spheroid (Earth is not a sphere)
  • Barometric Correction
  •  java.lang.Double getHe()
              Returns Hauteur estimée after calculation.
     double getHorizonDip()
               
     double getPa()
               
     double getRefr()
               
     java.lang.Double getZ()
              Returns Azimuth after calculation.
     void setAHG(double ahg)
              Set the AHG before calculation
     void setD(double d)
              Set the D before calculation
     void setG(double g)
              Set the G before calculation
     void setL(double l)
              Set the L before calculation
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    UPPER_LIMB

    public static final int UPPER_LIMB
    See Also:
    Constant Field Values

    LOWER_LIMB

    public static final int LOWER_LIMB
    See Also:
    Constant Field Values
    Constructor Detail

    DeadReckoning

    public DeadReckoning()
    Constructor. Call it and then use getHe() and getZ() to retreive result.
    Call after this one setAHG(), setD(), setL() and setG()


    DeadReckoning

    public DeadReckoning(double dAHG,
                         double dD,
                         double dL,
                         double dG)
    Constructor. Call it and then use getHe() and getZ() to retreive result.

    Parameters:
    dAHG - Angle Horaire Greenwich
    dD - Déclinaison
    dL - Latitude estimée
    dG - Longitude estimée
    Method Detail

    calculate

    public void calculate()
    Performs the required calculations, after the AHG, D, L and G. he and Z are after that ready to be retrieved.


    getHe

    public java.lang.Double getHe()
    Returns Hauteur estimée after calculation. This value is decimal. Use GeomUtil.DecToSex(getHe()) to read it in DegMinSec.

    See Also:
    GeomUtil

    getZ

    public java.lang.Double getZ()
    Returns Azimuth after calculation. This value is decimal. Use GeomUtil.DecToSex(getZ()) to read it in DegMinSec.

    See Also:
    GeomUtil

    setAHG

    public void setAHG(double ahg)
    Set the AHG before calculation

    Parameters:
    ahg - the AHG to set

    setD

    public void setD(double d)
    Set the D before calculation

    Parameters:
    d - the D to set

    setL

    public void setL(double l)
    Set the L before calculation


    setG

    public void setG(double g)
    Set the G before calculation

    Parameters:
    g - the G to set

    getHorizonDip

    public double getHorizonDip()

    getRefr

    public double getRefr()

    getPa

    public double getPa()

    correctedAltitude

    public double correctedAltitude(double calculatedAltitude,
                                    double eyeHeight,
                                    double hp,
                                    double sd,
                                    int limb)
    Returns the corrected Altitude of a celestial body
    We left in stand by for now:

    Parameters:
    calculatedAltitude - The one you want to correct
    eyeHeight - Height of the eye above water, in meters
    hp - Horizontal parallax, in minutes
    sd - Semi diameter of the celestial body, in minutes
    limb - Upper or Lower limb
    Returns:
    the Corrected Altitude
    See Also:
    UPPER_LIMB, LOWER_LIMB