Python Forum
Problem using two-dimensional interpolation. Result looks bad
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem using two-dimensional interpolation. Result looks bad
#3
(Oct-11-2021, 03:05 PM)deanhystad Wrote: I suggest you find a more recent tutorial. From scipy documentation for interpolate.Rbf

https://docs.scipy.org/doc/scipy/referen...e.Rbf.html
Quote:Rbf is legacy code, for new usage please use RBFInterpolator instead.
It looks like you want change the axes for you plot. Try this:
fnew=newfunc(ynew, xnew)

Thanks for the advice I will start reading documentation on interpolate.Rbf.

I have tried swithching X and Y as you suggest. I get the attached figure. It has to be something else. I hope it has to do with the obsolete code.

Edit:

newfunc=scipy.interpolate.Rbf(resulttokenX2.astype('float'), resulttokenY2.astype('float'), resulttokenF2.astype('float'), function='linear')
returns the same values

Attached Files

Thumbnail(s)
   
Reply


Messages In This Thread
RE: Problem using two-dimensional interpolation. Result looks bad - by player1682 - Oct-11-2021, 03:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to quantize a 4 dimensional array? PythonNPC 2 1,710 Apr-23-2022, 04:34 PM
Last Post: Gribouillis
  How to create 2 dimensional variables in Python? plumberpy 5 1,991 Mar-31-2022, 03:15 AM
Last Post: plumberpy
  Slicing a 2 dimensional array Scott 2 1,725 Jan-12-2022, 07:18 AM
Last Post: paul18fr
  Index data must be 1-dimensional : Classifier with sklearn Salma 0 4,417 Apr-01-2021, 03:22 PM
Last Post: Salma
  2 Dimensional Arrays Prithak 4 2,701 Mar-21-2021, 09:35 PM
Last Post: deanhystad
  programming an interpolation polynom relating newton Hallo810 1 2,282 Nov-14-2020, 03:05 PM
Last Post: buran
  comparing 2 dimensional list glennford49 10 4,292 Mar-24-2020, 05:23 PM
Last Post: saikiran
  Python 2 dimensional array creations sharpe 1 2,031 Nov-24-2019, 10:33 AM
Last Post: ThomasL
  Python: Creating N Dimensional Grid jf451 0 2,379 Dec-06-2018, 10:53 PM
Last Post: jf451
  python result problem of an iteration algorithm for power allocation Jessica 1 2,749 Sep-07-2018, 08:08 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020