Codes for spectral estimates