fittogrid returns -1 if extrapolation attempted