Attitude angles are important for geomagnetic vector observations. Traditionally, the determination of the azimuth of the fluxgate magnetometer by the staff is made in conjunction with the fluxgate theodolite according to the geographical orientation (Jankowski and Sucksdorff 1996). The tilt of the instrument above the abutment is recorded in real time using a high-precision tiltmeter or a suspended fluxgate magnetometer to circumvent the effect of the tilt. However, in practice, tilt effects are often ignored for observatories in non-permafrost environments. Unattended platforms, such as the SeaFloor ElectroMagnetic Station, use direct attitude measurements by means of tiltmeters and fiber optic gyroscopes (Toh et al. 2006). Researchers have also tried to correct the attitude between two fluxgate magnetometers using genetic algorithms (Liu et al. 2019). A genetic algorithm is a computational model that simulates the process of natural selection and genetic evolution observed in biological evolution; this is a well-established method for finding the global optimal solution of an objective function (Holland 1992; Weile and Michielssen 1997). Earlier studies have used genetic algorithms to calibrate the orthogonality of fluxgate magnetometer probes (Jiao et al. 2011). Three-component fluxgate magnetometer data naturally contain attitude information, and ideally the difference in the data between the two sets of instruments only arises from the difference in the attitude angles. Accordingly, the genetic algorithm calculates the attitude relationship between two fluxgate magnetometers and has natural advantages such as high measurement accuracy, no interference with the probe, and a minimal use of peripheral instruments.
The objective function of the genetic algorithm used in this paper is the difference between the value of the tested instrument data normalized to the standard instrument coordinate system and the value of the standard instrument data, as shown in Equation (1).

In Equation (1), the subscripts standard and test represent the data in the standard coordinate system and in the tested coordinate system, respectively, and the superscript ' represents data converted from another coordinate system. The rotation matrix T is obtained by multiplying the rotation matrices represented by the tilt angles Roll, Pitch, and the heading angle Yaw in sequence during the conversion from the standard coordinate system to the tested coordinate system, as shown in Equation (2).

This order cannot be changed because the attitude angles correspond to the rotation angles only when the matrix is multiplied in this order.
The presence of deviations in the attitude angles between the two fluxgate magnetometers results in a geomagnetic vector difference in one direction, reflecting a morphological change in the other direction due to projection (Wang et al. 2017). Taking the deviation of the heading angle Yaw as an example, as in Figure 1, the difference dH of the H component reflects the morphological variation of the D component.
Even for the same probe, the characterization factor, that is, the scale factor, used to convert the voltage to the magnetic induction intensity during the instrument commissioning process is not the same. Therefore, the scale factor matrix also needs to be added to the objective function, as in Equation (3).

Here, the matrix Sf is the scale factor matrix, which is a diagonal array with its diagonal elements being the scale factors of the corresponding components. The scale factor naturally exists and acts on the tested instrument data first, as in Equation (4); therefore, the attitude rotation matrix and the scale factor matrix acting on the tested instrument data are not interchangeable.

Note that the attitude angle and scale factor parameters are for the instrument being tested relative to the standard instrument. The positive direction of the angle is a counterclockwise rotation around the rotation axis, and each scale factor consists of the tested instrument data divided by the standard instrument data.
The presence of the scale factor between the two instruments results in a geomagnetic vector difference in one direction, reflecting a morphological change in this same direction. As shown in Figure 1, the D component difference, dD, exhibits its own morphological variation, that is, it exhibits the morphological variation of the D component.
In the literature (Liu et al. 2019), after selecting the appropriate genetic algorithm parameters, the tested instrument data are first obtained by an angular rotation of the standard instrument data and then a genetic algorithm is used to calculate the attitude angle between the data with an accuracy of up to 10−4 nT(the maximum absolute value of the difference).We can make slight improvements by running each attitude angle calculation 10 times; then, after excluding results that are more than one standard deviation from the mean, the mean value can be used as the attitude angle solution to further constrain the convergence of the genetic algorithm solution. In this way, the maximum absolute difference between the tested instrument data and the standard instrument data after the attitude angle correction can reach 10−5 nT.
Actual observations are often not so ideal. During the period of June 2–July 15, 2021, we conducted related experiments at the LIJ. Two sets of fluxgate magnetometers of the same type were used to make comparative observations. The standard instrument and the tested instrument were spaced 7-m apart, and both were placed on a stone pier in the variation room, with a deviation of 30° in the heading angle between the two. The 7 days with the smallest standard deviation for the results calculated by the genetic algorithm were taken, and the results are shown in Table 1.
Table 1. Calculated results of the comparative attitude angle observation experiment.
No.
|
Roll (°)
|
Pitch (°)
|
Yaw (°)
|
1
|
-2.211
|
-0.437
|
30.000
|
2
|
-0.831
|
-4.140
|
30.000
|
3
|
-1.978
|
2.434
|
30.000
|
4
|
-0.984
|
0.791
|
29.997
|
5
|
-0.512
|
1.158
|
29.943
|
6
|
-1.192
|
1.060
|
29.942
|
7
|
-1.050
|
1.545
|
29.907
|
Average
|
-1.251
|
0.345
|
29.970
|
Standard deviation
|
0.572
|
1.997
|
0.035
|
The calculated heading angle of 29.970° is very close to 30° with a small standard deviation of 0.035°, which indicates that the method used here is able to calculate large existing angles between two fluxgate magnetometers with high accuracy. However, smaller angles, where the standard deviation of the calculated angles over multiple days is greater than the mean value, need to be considered separately.
In the comparative geomagnetic vector observations, the static attitudes of the two fluxgate magnetometers often differ to some extent. Furthermore, the vector difference between the tested instrument data and the standard instrument data after the attitude angle correction is stabilized within approximately 0.5 nT. This requires that the standard deviation of the calculated angle be less than 0.057° (e.g., for a residual magnetic field of 100 nT). However, this requirement is not always satisfied as a result of the quality of the data or disturbances in the observational environment. Therefore, when designing the correction process, we chose, as the criterion to judge the correct calculation of the attitude angles, the uncertainty of all three angles of the multi-day calculation results to be less than 0.1° or the uncertainty of the calculation results of significantly large attitude angles (greater than 1°) to be less than 0.057°.
As for the scale factor, the calculated uncertainty (expressed as the standard deviation of the multi-day scale factors) is small. It is approximately 0.002 for observatories with a good observational environment, resulting in an uncertainty of less than 0.1 nT for the magnetic field. In this paper, after determining the relative attitude angles of the two instruments, we calculate the scale factor for each day in 3 consecutive months and perform linear regression to obtain the base scale factor (intercept) and the long-term time drift (slope). Instrumental scientists and engineers assume that the long-term time drift of a fluxgate magnetometer is linear (Gordon and Brown 1972; Esper 2020); such behavior is characterized by tiny fluctuations in the short-term observations and non-negligible and linear variations in the long-term observations. If the long-term time drifts of the two instruments are different, there will be a linear change in the scale factor between the instruments over time. This is a relative relationship and does not specify whether the drift comes from the tested instrument or the standard instrument or both. However, for the correction of the long-term observational agreement, it is sufficient to assume that the drift comes from the tested instrument.
Temperature has an important effect on fluxgate magnetometers (Primdahl 1979). New fluxgate magnetometers have been able to achieve a thermal drift of less than 0.1 nT/°C in the laboratory (Korepanov 2012). However, the effect of temperature on fluxgate magnetometers is still very important and non-negligible in long-term observations. Even though the temperature difference between two sets of instruments in the same variation room is nearly constant (the mean value of the temperature difference between the two sets of instruments at LIJ from January 1, 2020, to March 31, 2020, was 0.9672 °C, and the standard deviation was 0.0863 °C), the measurement difference caused by the fixed temperature difference is not constant, which means that the temperature change affects the measurement difference between the two sets of instruments. The top section of Figure 2 shows the Z component difference, dZ, and temperature variation of the two sets of instrumental data from January to March 2020 at LIJ after the attitude angle, scale factor, and long-term time drift corrections. The dZ pattern, showing a decrease followed by an increase, is very similar to the temperature variation. This relationship is approximately linear, as seen in the scatter plot of dZ versus temperature (middle section of Figure 2). The temperature, rather than the temperature difference, has a linear effect on the vector difference between the two sets of instruments. This can be interpreted as the difference in the temperature coefficients between the two sets of instruments leading to differences in the measurements at different temperature points (the red line at the bottom of Figure 2), even though the temperature difference is always constant (the blue line at the bottom of Figure 2).
The morphological differences and the data disagreement in the comparative geomagnetic vector observations are primarily due to the attitude angle, scale factor, long-term drift, and relative temperature coefficients. The calculations of the attitude angle and the scale factor are based on the genetic algorithm. The long-term time drift and relative temperature coefficients are then obtained via linear regression. The parameter calculation and correction flow used in this paper are shown in Figure 3.