An instrument used to measure the intensity and direction of a magnetic field, especially at points on the Earth's surface.