The invention relates to a method for calibrating a spectrometer equipped with a CCD array, the CCD array recording a spectrum from a reference volume emitter. The raw data hereby recorded are used to generate a function which describes an etaloning effect that occurs, said function being saved in the spectrometer as a correction function for measurements obtained from volume emitters.