Unravelling the magnetic record in marine and continental sediments door