ynadir function

Calculates the nadir point of measured 'y' values.