Interpolation of Magnetic data

Hi Katrin!! Welcome to the GMT Forum!

You are working with irregular data. So, as the xyz2grd says:

Note : xyz2grd does not grid the data, it simply reformats existing data to a grid structure. For gridding, see surface, greenspline, nearneighbor, or triangulate.