Refer to irfpy.util.energyspectrum.
irfpy.util.energyspectrum
Maxwell distribution
How to load tree-structured data