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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
typedef struct
wmm_cof_record_t;
/**
* Initialize the WMM. Needs calling only once.
*/
void ;
/**
* Get the date in WMM format
*
* @param year Year in 2 digit format of 21st centuary, i.e. 20 represents 2020
* @param month Month, 1 to 12
* @param date Date of month, 1 to 31
* @return Date in WMM format
* @note No checking of illegal dates is done
*/
float ;
/**
* Get the magnetic variation at a point on the earth's surface
*
* @param glat Latitude in degrees and fractional degrees, negative west
* @param glon Longitude in degrees and fractional degrees, negative west
* @param time_years The date as returned from wmm_get_date
* @param dec Pointer to float holding calculated magnetic variation (also known as declination). Negative is west.
* @note The altitude used is the ellipsoid at the supplied latitude/longitude, not the earth's surface. This will
* give very small errors in some parts of the world comapred to sea level.
*/
void ;