Skip to content

kanchudeep/Geomagnetism-Java

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 

Geomagnetism

Java class to calculate magnetic declination, magnetic field strength, inclination etc. for any point on the earth.

Usage:

// Create instance with only location and without altitude & date
Geomagnetism gm = new Geomagnetism(123.45678, 76.54321);
System.out.printf("Declination: %f\n", gm.getDeclination());

// Create a calendar for calculation
GregorianCalendar calendar = new GregorianCalendar();
calendar.set(2017, 6, 1); // 2017 July 01
// Update instance with altitude and date apart from location
gm.calculate(98.76543, 12.34567, 1234, calendar);
System.out.printf("Declination: %f\n", gm.getDeclination());

About

Java class to calculate magnetic declination, magnetic field strength, inclination etc. for any point on the earth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages