Modeling and reduction of the gradient effect of a magnetic sensor for an aeromagnetic compensator.