Spectrum-Based Localization