# igrfmagm

Calculate Earth magnetic field and secular variation using International Geomagnetic Reference Field

## Syntax

## Description

`[`

calculates the Earth magnetic field and the secular variation at a specific location and
time using the International Geomagnetic Reference Field generation 13 (IGRF-13).`XYZ`

,`H`

,`D`

,`I`

,`F`

,`DXDYDZ`

,`DH`

,`DD`

,`DI`

,`DF`

]
= igrfmagm(`height`

,`latitude`

,`longitude`

,`decimalYear`

)

`[`

optionally uses different generations of the International Geomagnetic Reference Field
(IGRF-13, IGRF-12, and IGRF-11). `XYZ`

,`H`

,`D`

,`I`

,`F`

,`DXDYDZ`

,`DH`

,`DD`

,`DI`

,`DF`

]
= igrfmagm(`height`

,`latitude`

,`longitude`

,`decimalYear`

,`generation`

)

## Examples

## Input Arguments

## Output Arguments

## Limitation

This function is valid for these year ranges:

IGRF-13 model — 1900 and 2025

IGRF-12 model — 1900 and 2020

IGRF-11 model — 1900 and 2015

This function is valid between the heights of -1000 m and 5.6 Earth radii (35,717,567.2 m).

The

`height`

,`latitude`

,`longitude`

, and`decimalYear`

arguments must all be the same size (matrix, scalar, and so forth).

This function has the limitations of the International Geomagnetic Reference Field (IGRF). For
more information, see the IGRF website, `https://www.ngdc.noaa.gov/IAGA/vmod/igrfhw.html`

.

## References

[1] Blakely, R. J. *Potential Theory
in Gravity & Magnetic Applications*. Cambridge, UK:
Cambridge University Press, 1996.

[2] Lowes, F. J. “The International Geomagnetic Reference Field: A 'Health' Warning.” January, 2010. https://www.ngdc.noaa.gov/IAGA/vmod/igrfhw.html.

**Introduced in R2015b**