In this paper we propose a novel and effective technique for the study and compensation of
local magnetic anomalies, avoiding complex deperming processes. The technique is based on two main
steps: Measurement of near-field magnetic maps on the deck of the naval platform, and a
post-processing technique to identify the exact location of the main magnetic perturbations and its
assessment. After these two steps, the detected magnetic anomalies are effectively
compensated with degaussing coils using a genetic algorithm based optimization technique. The
new technique has been successfully applied to the detection and compensation of a local magnetic
perturbation in a Vessel´s Flight Deck, which was having
important operational issues.