Method for generating at least one image dataset and one reference image dataset of an examination object from at least two raw datasets (17, 20) comprising the steps: - Providing a first raw dataset, wherein the first raw dataset is recorded using a magnetic resonance system and comprises measurement signals at a plurality of readout points (36, 44) in the k-space, wherein the readout points (36, 44) lie on a first k-space trajectory (35, 42), - Providing a second raw dataset, wherein the second raw dataset is recorded using the same magnetic resonance system and on the same examination object as the first raw dataset and comprises measurement signals at a plurality of readout points in the k-space, wherein the readout points lie on a second k-space trajectory different from the first k-space trajectory (35, 42), wherein the first k-space trajectory is more sensitive to basic magnetic field deviations than the second k-space trajectory, - Reconstructing a plurality of image datasets (88, 89, 90, 91) from the first raw dataset, wherein a separate equalisation coefficient set (80, 82, 83, 84) is used before the reconstruction of each image dataset (88, 89, 90, 91), wherein an equalisation coefficient set (80, 82, 83, 84) defines a phase shift of the phases (37a, 37b, 37c, 37d) of the measurement signals of the first raw dataset in the k-space, - Reconstructing a reference image dataset from the second raw dataset, - Comparing the image datasets (88, 89, 90, 91) with the reference image dataset, wherein a similarity value (α 88, α 89, α 90, α 91) is generated in each case during the comparison, and - Selecting the image dataset (88, 89, 90, 91) with the greatest similarity value (α 88, α 89, α 90, α 91). - Providing a first raw dataset, wherein the first raw dataset is recorded using a magnetic resonance system and comprises measurement signals at a plurality of readout points (36, 44) in the k-space, wherein the readout points (36, 44) lie on a first k-space trajectory (35, 42), - Providing a second raw dataset, wherein the second raw dataset is recorded using the same magnetic resonance system and on the same examination object as the first raw dataset and comprises measurement signals at a plurality of readout points in the k-space, wherein the readout points lie on a second k-space trajectory different from the first k-space trajectory (35, 42), wherein the first k-space trajectory is more sensitive to basic magnetic field deviations than the second k-space trajectory, - Reconstructing a plurality of image datasets (88, 89, 90, 91) from the first raw dataset, wherein a separate equalisation coefficient set (80, 82, 83, 84) is used before the reconstruction of each image dataset (88, 89, 90, 91), wherein an equalisation coefficient set (80, 82, 83, 84) defines a phase shift of the phases (37a, 37b, 37c, 37d) of the measurement signals of the first raw dataset in the k-space, - Reconstructing a reference image dataset from the second raw dataset, - Comparing the image datasets (88, 89, 90, 91) with the reference image dataset, wherein a similarity value (α 88, α 89, α 90, α 91) is generated in each case during the comparison, and - Selecting the image dataset (88, 89, 90, 91) with the greatest similarity value (α 88, α 89, α 90, α 91).