Background spectrum templates are accumulated in intervals of background rate. A background spectrum for an individual observation is then synthesised from a combination of the templates weighted according to the variations of the observed background rate.