by a temporally variable gradient field of a magnetic resonance apparatus at least two magnetic resonance data sets arising from different spatial positions are generated using the gradient field and from the magnetic resonance data sets the compensation setting of a filter is calculated with which a control quantity of the gradient field can be pre distorted such that the sum from the gradient field and at least one component of the eddy current field exhibits a desired time curve and the gradient field used for the magnetic resonance data sets is generated with a predetermined initial setting of the filter that at least approximately takes into account the component of the eddy current field application_number US 77925204 A description 0028 fig2 shows a longitudinal section through a magnetic resonance apparatus to generate a static basic magnetic field that is optimally homogenous at least within a spherical imaging volume 75 the magnetic resonance apparatus has a substantially hollow cylindrical superconducting basic field magnet 10 furthermore to generate rapidly switchable magnetic gradient fields that are optimally linear within the imaging volume 75 the magnetic resonance device has a gradient coil system 20 likewise substantially hollow cylindrical that is arranged in the bore of the basic field magnet 10 a shim coil system 30 with which among other things the basic magnetic field can be homogenized within the imaging volume 75 is integrated into the gradient coil system 20 the gradient coils of the gradient coil system 20 and the shim coils of the shim coil system 30 are connected for power supply to a control unit 50 the control unit 50 has a filter 52 with adjustable filter parameters to pre distort.