def METHOD_NAME( response, wavelength, limit):
    center_index = find_nearest( response, max(response))
    isInBand = response>max(response) - limit
    leftBound = center_index
    while isInBand[leftBound] == 1:
        leftBound = leftBound-1
    rightBound=center_index
    while isInBand[rightBound] == 1:
        rightBound = rightBound+1
    METHOD_NAME = wavelength[rightBound] - wavelength[leftBound]
    return METHOD_NAME