Spectral analysis of vector magnetic field profiles