Oct-11-2021, 11:40 AM
Hello everyone. I am following this tutorial (at 04:57) to construct two-dimensional interpolation using Radial basis functions. I have constructed the following code:
However, the resulting image is shifted.
This is what I get:![[Image: KK92CQrr]](https://postimg.cc/KK92CQrr)
And this is what it should be:![[Image: grLWBVw8]](https://postimg.cc/grLWBVw8)
I have used paint to turn left the original result to arrive to the previous figure.
Can someone please tell me what I have to do to arrive to the second figure instead of the first? I have tried changing the values inside of
, but I haven't achieved any result.
I will attach the data and my full code just in case someone wants to take a look.
Best regards.
Player1682.
Note: since the links to the images seem broken, I will attach them too.
1 2 3 4 5 6 7 8 |
newfunc = interpolate.Rbf(resulttokenX2.astype( 'float' ), resulttokenY2.astype( 'float' ), resulttokenF2.astype( 'float' ), function = 'multiquadric' ) xnew, ynew = np.mgrid[ 340 : 350 : 100j , 23 : 32 : 100j ] fnew = newfunc(xnew, ynew) #create image plot py.figure( 1 ) py.clf() py.imshow(fnew, extent = [ 340 , 350 , 23 , 32 ], cmap = py.cm.jet) |
This is what I get:
And this is what it should be:
I have used paint to turn left the original result to arrive to the previous figure.
Can someone please tell me what I have to do to arrive to the second figure instead of the first? I have tried changing the values inside of
1 |
np.mgrid |
I will attach the data and my full code just in case someone wants to take a look.
Best regards.
Player1682.
Note: since the links to the images seem broken, I will attach them too.
Attached Files
Thumbnail(s)
