Calibrating a ship’s magnetic compass involves identifying deviation by comparing compass bearings with known true headings, usually through a compass swing or transit bearing method. Adjustments are made using corrector magnets. The process must be done by a certified adjuster and documented with a deviation card.