|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.AndrewGray.geoutils.GeoMagVar
Class calculates the geomagnetic variation at a given LatLong using the IGRF2000 model. This yields the offset a magnetic compass will show from true north at a given location.
| Constructor Summary | |
GeoMagVar()
create a new GeoMagVar calculator. |
|
| Method Summary | |
double |
calculateMagneticVariation(LatLong latLong)
Return the predicted geomagnetic variation (in radians) at the given LatLong using the current settings for height and date. |
void |
setDate(java.util.Calendar cal)
set the date for which subsequent geo-variance calculations are performed |
void |
setHeight(double h)
set the date for which subsequent geo-variance calculations are performed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeoMagVar()
| Method Detail |
public void setDate(java.util.Calendar cal)
cal - the calendar representing the required datepublic void setHeight(double h)
h - the height in meterspublic double calculateMagneticVariation(LatLong latLong)
latLong - the Latitude & Longitude for which geomagnetic variation is to be computed.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||