Methods and systems for compensating for static magnetic field
inhomogeneities during nuclear magnetic resonance detection are
disclosed. Application of radio frequency pulses and/or magnetic field
gradients may be used to correct for spin dephasing caused by the
inhomogeneities. The methods and system may be used to improve
signal-to-noise ratios in NMR and MRI systems where magnetic field
inhomogeneity may have an effect.