Height ramp method now checks for NaN coordinates