 Aeromagnetic surveys were first performed in World War II to detect submarines using a Magnetic Anomaly Detector attached to an aircraft.This method is still widely used by military maritime patrol aircraft.Aeromagnetic surveys are widely used to aid in the production of geological maps and are also commonly used during mineral exploration and petroleum exploration.