I am using a distance from curve to determine an aperture size. However, I do not want the apertures to get bigger and bigger forever. How can I let the size increase until it hits a certain value? Additionally, is it possible to separate the data into bins so that, for example, there would be 5 sizes of apertures, instead of a continuous spectrum.