Effect of finite sampling on atmospheric spectra