A method is provided for generating a magnetic resonance image dataset containing spectroscopic information from an in vivo measurement. The method includes acquiring measurement data by a non-Cartesian k-space sampling scheme, performing a gradient correction of the measurement data, regridding the measurement data to Cartesian coordinates, Fourier-transforming the measurement data, determining the fat component and/or the fatty acid components of at least some of the volume elements using a model function applied to the signal distribution, and generating at least one magnetic resonance image dataset in which one piece of the spectroscopic information is mapped in a spatially resolved manner. A computer program product, a data medium, and a magnetic resonance system are also disclosed.