The direction in which the compass needle points aboard ship is the _resultant_ of the effect of the earth's magnetic field and the magnetic field of the ship, and both fields are subject to continual and complicated variations from year to year, from day to day, _and even from hour to hour_!