title: Can interpolation in python be used outside of predefined points?
body: <p>I have recently been working with Radial Basis Function interpolation in Python. My code includes this lines</p>
  <pre><code>xi, yi = np.linspace(resulttokenX2.astype('float').min(), resulttokenX2.astype('float').max(), 100), np.linspace(resulttokenY2.astype('float').min(), resulttokenY2.astype('float').max(), 100)
  xi, yi = np.meshgrid(xi, yi)
  
  # Interpolate
  rbf = scipy.interpolate.Rbf(resulttokenX2, resulttokenY2, resulttokenF2, function='multiquadric')
  zi = rbf(xi, yi)
  </code></pre>
  <p>As you can see, I need to define the points <code>xi</code> and <code>yi</code> in the code before doing the interpolation, meaning that I will only have interpolated values at said points.</p>
  <p>I am also working with pyomo, the optimization software based on python. This code could be very helpful to me since I am working with trajectory optimization in the presence of a field.</p>
  <p>So, I was wondering if there was a way for me to adapt my interpolation code to instead of just calculating the values at <code>xi</code> and <code>yi</code> using it as a function and finding out the value of the interpolated field at a single point, like a function of x and y, f(x, y) and use it in my pyomo code to know the value of the windspeed at a certain point and thus, be able to use it to calculate the optimal trajectory knowing the windspeed at each point of the path.</p>