...since it's already there in the header, we should just have the script read the energy range directly from the FITS keywords CHANMIN and CHANMAX.