makeIGRF - create 'igrfcoefs.mat' for IGRF

Create 'igrfcoefs.mat' file for using Drew Compston's IGRF modell
46 Downloads
Updated 26 Mar 2023

View License

Make 'igrfcoefs.mat' file from downloaded igrf modells (in .txt format) for using it in igrf() matlab function:
Modell can be downloaded from here (.txt format):
https://www.ngdc.noaa.gov/IAGA/vmod/igrf_old_models.html
igrf matlab functions (Drew Compston's IGRF modell):
https://www.mathworks.com/matlabcentral/fileexchange/34388-international-geomagnetic-reference-field-igrf-model
Input: file location eg. 'igrf13coeffs.txt'
Output: creates 'igrfcoefs.mat' file in current folder
'igrfcoefs.mat' file should be placed in the folder where igrf will be used

Cite As

Mate Tomasik (2025). makeIGRF - create 'igrfcoefs.mat' for IGRF (https://in.mathworks.com/matlabcentral/fileexchange/126854-makeigrf-create-igrfcoefs-mat-for-igrf), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
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