I am dealing with a csv data set of the following structure:
https://i.stack.imgur.com/nLqiq.png
Ideally, I would like to find an interpolated function c = c(a, b) and then invert it, i.e. so that I can specify a value c and it will return a number or an array of numbers such that the interpolated functional form holds. With
df = pd.read_csv('data.txt', sep=",", header=None)
plt.tricontourf(df.a.values, df.b.values, df.c.values, 50)
plt.plot(df.a.values, df.b.values, 'k+', markersize = 3, alpha=0.3, color='white')
I seem to get pretty close to some kind of interpolation (even though I don't understand how exactly this interpolation is computed):
However, from here I don't know how I can get the interpolated function (I also tried playing with interpol2D but no luck here either) an especially how to invert it from there. What would be the best way to do this? The data set I am using can be found here