Los Alamos National Laboratory
 
 

D  Decision Applications

CONTACTS

  • Group Leader
    Kristin Omberg
  • Deputy Group Leader
    David Cremer
  • Office Administrator
    Lorraine Johnson
  • Group Office Location
    TA-52, Bldg. 115
    667-4567
    MS K551

Earth’s Magnetic Field

The TSAGeoMag class is adapted from software provided by the National Oceanic and Atmospheric Administration. It can calculate the magnetic field strength, declination, and dip angle for the Earth’s magnetic field. To use the class:

TSAGeoMag magField = new TSAGeoMag();

double latitude = 30.000; // 30 degrees north latitude
double longitude = -97.0000; // 97 degrees west longitude
double date = 2007.5; // about July 1 of 2007. It’s the date in decimal years
double elevation = 1.0; // the elevation in kilometers, or 1,000 meters

double declination = magField.getDeclination(latitude, longitude, date, elevation);

download button (java utilities.zip)

Operated by Los Alamos National Security, LLC for the U.S. Department of Energy's NNSA
Inside | © Copyright 2014 Los Alamos National Security, LLC All rights reserved | Disclaimer/Privacy | Web Contact