Library for magnetic data inversion