The Measurement of Magnetic Properties of Rocks