def energy_to_filenumber(el, val):
    """
    Convert energy value in eV to image file number
    :argument el: list of energy values in eV in single decimal format
    :argument val: single decimal float representing an electron energy in eV
    :return el.index(val): integer filenumber corresponding to the energy val
    """
    return el.index(val)
