def normalise_to_max(xarray,yarray):
    """Given x and y arrays returns a y array which is normailsed to 100% at the maximum value of the original y array""" 
    ymax=max(yarray)
    ynorm = (yarray/ymax)*100
    return ynorm