main content

use world magnetic model -凯发k8网页登录

use world magnetic model

description

example

[xyz,h,d,i,f] = wrldmagm(height,latitude,longitude,decimalyear) calculates the earth magnetic field at a specific location and time using the world magnetic model (wmm) wmm2020.

[xyz,h,d,i,f] = wrldmagm(height,latitude,longitude,decimalyear,model) calculates the earth magnetic field using world magnetic model model.

[xyz,h,d,i,f] = wrldmagm(height,latitude,longitude,decimalyear,'custom',filename) calculates the earth magnetic field using the world magnetic model defined in the wmm.cof file. the wmm.cof files must be in their original form as provided by .

examples

calculate the magnetic model 1000 meters over natick, massachusetts, on july 4, 2020, using the wmm2020 model.

[xyz, h, d, i, f] = wrldmagm(1000, 42.283, -71.35, decyear(2020,7,4),'2020')
xyz =
   1.0e 04 *
    1.9738
   -0.5014
    4.7556
h =
   2.0364e 04
d =
  -14.2536
i =
   66.8184
f =
   5.1733e 04

calculate the magnetic model 1000 meters over natick, massachusetts, on july 4, 2020, using a downloaded wmm2020.cof file.

[xyz, h, d, i, f] = wrldmagm(1000, 42.283, -71.35, decyear(2020,7,4),'custom','wmm2020.cof')
xyz =
   1.0e 04 *
    1.9738
   -0.5014
    4.7556
h =
   2.0364e 04
d =
  -14.2536
i =
   66.8184
f =
   5.1733e 04

input arguments

distance from the surface of the earth, specified as a scalar, in meters.

data types: double

geodetic latitude, specified as a scalar, in degrees. north latitude is positive and south latitude is negative.

this function accepts latitude values greater than 90 and less than -90.

data types: double

geodetic longitude, specified as a scalar, in degrees. east longitude is positive and west longitude is negative. this function accepts longitude values greater than 180 and less than -180.

data types: double

year, in decimal format, specified as a scalar. this value can have any fraction of the year that has already passed.

data types: double

world magnetic model, specified as a character vector or string.

modeldescription
'2020'

wmm2020 (epoch 2020–2025).

'2015v2' or '2015'

wmm2015v2 (epoch 2015–2020).

'2015v1'

wmm2015 (epoch 2015–2020). this version is not recommended. use '2015v2' (wmm2015v2) instead.

'2010'

wmm2010 (epoch 2010–2015).

'2005'

wmm2005 (epoch 2005–2010).

'2000'

wmm2000 (epoch 2000–2005).

data types: char | string

coefficient file, wmm.cof, downloaded from .

example: 'custom','wmm.cof'

data types: char | string

output arguments

magnetic field vector, returned as a vector, in nanotesla.

horizontal intensity, returned as a scalar, in nanotesla.

declination, returned as a scalar, in degrees ( ve east).

inclination, returned as a scalar, in degrees ( ve down).

total intensity, returned as a scalar, in nanotesla (nt).

limitations

  • the wmm specification produces data that is reliable five years after the epoch of the model, which begins january 1 of the model year selected. the wmm specification describes only the long-wavelength spatial magnetic fluctuations due to the earth core. intermediate and short-wavelength fluctuations, contributed from the crustal field (the mantle and crust), are not included. also, the substantial fluctuations of the geomagnetic field, which occur constantly during magnetic storms and almost constantly in the disturbance field (auroral zones), are not included.

  • this function has the limitations of the world magnetic model (wmm). wmm2020 is valid between -1km and 850km, as outlined in the world magnetic model 2020 technical report.

  • wmm2015v2 was released by noaa in february, 2019 to correct performance degradation issues in the arctic region from january 1, 2015 to december 31, 2019. wmm2015v2 supersedes wmm2015. consider replacing wmm2015 with wmm2015v2 for use with navigation and other systems. it is still acceptable to use wmm2015 in systems below 55 degrees latitude in the northern hemisphere.

version history

introduced in r2006b

see also

|

external websites

    网站地图