create lapse() function and apply to 2 m and ground level