 Modern surveys generally use magnetometers with GPS technology to automatically record the magnetic field and their location.The data set is then corrected with data from a second magnetometer (the base station) that is left stationary and records the change in the Earth's magnetic field during the survey.Magnetometers are used in directional drilling for oil or gas to detect the azimuth of the drilling tools near the drill.