Instruments for measuring the magnitude and sometimes the direction of a magnetic field, especially that of the earth.