Spectrum analyser for harsh conditions