Code covered by the BSD License  

Highlights from
IGRF Magnetic Field

4.0

4.0 | 2 ratings Rate this file 48 Downloads (last 30 days) File Size: 1006.68 KB File ID: #28874
image thumbnail

IGRF Magnetic Field

by Charles Rino

 

28 Sep 2010 (Updated 04 Oct 2010)

Compute IGRF mean earth magnetic field

| Watch this File

File Information
Description

MATLAB implementation of IGRF11 fortran code as function for calculating Earth mean magnetic field. Implementation has been modified to default to GPS reference coordinates with output B components North, East, and Vertical. Spherical harmonic coefficients are derived from downloaded Excel file.
http://www.ngdc.noaa.gov/IAGA/vmod/igrf.html

Screenshot created by Demo_igrf11syn

Acknowledgements
This submission has inspired the following:
International Geomagnetic Reference Field (IGRF) Model
MATLAB release MATLAB 7.11 (2010b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
28 Sep 2010 Mark Shore

File is insufficiently documented (for example, the spherical coefficients have to be loaded before the main program can run) and post 2009 results differ significantly from those calculated by other software implementations of IGRF.

30 Sep 2010 Joaquim Luis

You may want to look at this too.
It's very fast (MEX) and point-and-click driven

http://sites.google.com/site/mironehowtos/geophysics/display-the-earth-magnetic-field

05 Oct 2010 Mark Shore

Documentation has been improved and the function now returns proper values for the current epoch. A useful IGRF tool for MATLAB users that can be used for individual points or for global grids. No limit checking on lat/lon values; users will need to check their own inputs.

02 Feb 2012 Brian

This is straight forward and easy to use.

Please login to add a comment or rating.
Updates
03 Oct 2010

Error noted by Mark Shore for fyear>=2000 fixed. GHcoefficients.mat version of spherical harmonic coefficients added. Code checked against results kindly provided by Mark Shore.

04 Oct 2010

date fdate variable conflict fixed.

Tag Activity for this File
Tag Applied By Date/Time
geophysics Charles Rino 28 Sep 2010 13:34:56
earth magnetic field Charles Rino 28 Sep 2010 13:34:57
igrf Charles Rino 28 Sep 2010 13:34:57

Contact us at files@mathworks.com