Geomagnetic Field Intensity Data

Version 1.0.0 (48.8 KB) by Sushanta
Computes plotss of a region defined by latitude and longitude taken as user input from 1900 to 2019.
36 Downloads
Updated 11 Nov 2022

View License

The International Geomagnetic Reference Field (IGRF) is an internationally agreed upon mathematical model of the Earth's magnetic field. There are MATLAB resources that provide the magnetic field intensity at a point (see the acknowledgments section). These resources inspired me to write this extension. In this project I have merged the available resources so that we can compute geomagnetic data of a region defined by user given latitude and longitude. This includes past data as long as 1900 to the latest available coefficients data.
When new coefficients data is available we just have to add to the data file and run the scirpt as usual way.
The following files are provided:
Taken from IGRF13 Model by Drew Compston
-igrf.m: Computes Earth's magnetic field at a point(s).
-igrfline.m: Gives the coordinates along a magnetic field line starting at a given point.
-getigrfcoefs.m: Extracts coefficients from the .dat files provided on the IGRF website and saves them to a .mat file.
-igrfcoefs.mat: IGRF coefficients of the 12th IGRF generation (most recent as of 2015).
-loadigrfcoefs.m: Loads the proper IGRF coefficients at a given time (making the necessary interpolation).
-*grf*.dat: 12th generation IGRF coefficient data files.
-plotbline: Plots a magnetic field line.
-plotbearth: Plots a number of magnetic field lines.
-geod2ecef: Converts geodetic coordinates to ECEF coordinates.
-ecef2geod: Converts ECEF coordinates to geodetic.
We have added:
-coordinate_change.m: changes the altitude. latitude and longitude inputs to [x,y,z] coordinates as required as input in other file
-input_time.m: converts the date in a format required
-norm_data.m: computes the magnitude of magnetic field intensity in the region defined by the user inputs
-run_this_scripts: this is the file that connects every other files and users are required to run this scirpt only.
***
I have done it as part of my semester project. I hope to learn more and improve it time to time.
email: 22MC0100@iitism.ac.in

Cite As

Sushanta (2024). Geomagnetic Field Intensity Data (https://www.mathworks.com/matlabcentral/fileexchange/120308-geomagnetic-field-intensity-data), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0