Package geoMag
Class MagneticVariation
java.lang.Object
geoMag.MagneticVariation
Wrapper class around other available magnetic variation models so that I can switch 
 to other models easily should the need arise. Currently just works with the
 TSAGeoMag class.
- Author:
 - Doug Gillespie
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic MagneticVariationdoublegetVariation(long timeMilliseconds, double dLat, double dLong) Return the magnetic variation for a time and placedoublegetVariation(GpsData gpsData) Get the magnetic variation for a GPS location and time 
- 
Method Details
- 
getInstance
 - 
getVariation
Get the magnetic variation for a GPS location and time- Parameters:
 gpsData- gps data (contains time and position information)- Returns:
 - magnetic variation in degrees
 
 - 
getVariation
public double getVariation(long timeMilliseconds, double dLat, double dLong) Return the magnetic variation for a time and place- Parameters:
 timeMilliseconds- time in Java millisecondsdLat- latitude in decimal degreesdLong- longitude in decimal degrees- Returns:
 - magnetic variation in degrees
 
 
 -