Description Usage Arguments Format Value References Examples
View source: R/magnetic-models.R
IGRF and NCEI World/Enhanced Magnetic Model Interface
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | wmm2020_extract(
lon,
lat,
year = mm_decimal_year(Sys.Date()),
height = mm_ellipsoidal_height(lon, lat, 0)
)
igrf13_extract(
lon,
lat,
year = mm_decimal_year(Sys.Date()),
height = mm_ellipsoidal_height(lon, lat, 0)
)
emm2017_extract(
lon,
lat,
year = mm_decimal_year(Sys.Date()),
height = mm_ellipsoidal_height(lon, lat, 0)
)
mm_ellipsoidal_height(lon, lat, height)
mm_decimal_year(date)
mm_version()
mm_egm9615_geoid_int
|
lon, lat |
Vectors of coordinates. |
year |
A decimal year (e.g., 2020.2120). The World Magnetic Model is valid between 2020.0 and 2025.0; the Enhanced Magnetic Model is valid between 2000.0 and 2022.0. |
height |
Height above the WGS84 ellipsoid in kilometers. Use
|
date |
An R date object or value that can be coerced to one. |
An object of class integer
of length 1038961.
A data frame with columns - decl
: Magnetic variation in degrees -
incl
: Inclination of the magnetic field in degrees - decl_err
,
incl_err
: Error associated with declination and inclination,
respectively.
NCEI World Magnetic Model https://www.ngdc.noaa.gov/geomag/WMM/DoDWMM.shtml.
NCEI Enhanced Magnetic Model https://www.ngdc.noaa.gov/geomag/EMM/index.html.
IGRF-13 https://www.ngdc.noaa.gov/IAGA/vmod/home.html.
NCEI Geomagnetic Modeling Team and British Geological Survey. 2019. World Magnetic Model 2020. NOAA National Centers for Environmental Information. doi: 10.25921/11v3-da71, 2020, accessed 2021-02-23.
Chulliat, A., W. Brown, P. Alken, C. Beggan, M. Nair, G. Cox, A. Woods, S. Macmillan, B. Meyer and M. Paniccia, The US/UK World Magnetic Model for 2020-2025: Technical Report, National Centers for Environmental Information, NOAA, doi: 10.25923/ytk1-yx35, 2020.
1 2 3 | wmm2020_extract(-64, 45, mm_decimal_year("2021-01-01"))
emm2017_extract(-64, 45, mm_decimal_year("2021-01-01"))
igrf13_extract(-64, 45, mm_decimal_year("2021-01-01"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.