org.noaa.wmm
Class WMMCalculator
java.lang.Object
org.noaa.wmm.WMMCalculator
public class WMMCalculator
- extends java.lang.Object
|
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 |
WMMCalculator
public WMMCalculator(ReferenceSystem referenceSystem)
throws java.io.IOException
- Parameters:
referenceSystem -
- Throws:
java.io.IOException
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 doublelongitue - the longitude given as doubleheight - the height in meterscurrentDate - the date for calculation
- Returns:
- the declination given in degrees
- Throws:
WMMException