A magnetic data correction workflow for sparse, four dimensional data