Assorted utilities for calculating / analyzing x-ray spectra