New convenient interp1d_extrap function.