org.noaa.wmm
Class WMMCalculator

java.lang.Object
  extended by org.noaa.wmm.WMMCalculator

public class WMMCalculator
extends java.lang.Object


Constructor Summary
WMMCalculator(ReferenceSystem referenceSystem)
           
 
Method Summary
 java.lang.Double getDeclination(java.lang.Double latitude, java.lang.Double longitue, java.lang.Double height, java.util.Date currentDate)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMMCalculator

public WMMCalculator(ReferenceSystem referenceSystem)
              throws java.io.IOException
Parameters:
referenceSystem -
Throws:
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        WMMException
Parameters:
args -
Throws:
java.io.IOException
WMMException

getDeclination

public java.lang.Double getDeclination(java.lang.Double latitude,
                                       java.lang.Double longitue,
                                       java.lang.Double height,
                                       java.util.Date currentDate)
                                throws WMMException
Parameters:
latitude - the latitude given as double
longitue - the longitude given as double
height - the height in meters
currentDate - the date for calculation
Returns:
the declination given in degrees
Throws:
WMMException