I have the following numpy array:
# A B C Y
my_arr = np.array([ [.20, .54, .26], # <0
[.22, .54, .24], # 1
[.19, .56, .25], # 2
[.19, .58, .23], # 3
[.17, .62, .21] ]) # 4+
if a user enters a y (example, 2.5) I should out put three values, one for A, B, and C:
in my example A: .19, B: .57, C: .24
More Examples:
Y A B C
0.2 .20 .54 .26
1.5 .215 .55 .245
4.0 .17 .62 .21
8.7 .17 .62 .21
The user will enter a multiple of y values as a numpy array. the result should be an array as well
I've done bits and pieces of the code for example
#boundaries:
y[y < 0] = 0
y[y > 4] = 4
I'm also assuming that scipy.ndimage / map_coordinates will best fit my requirements rather than scipy.interpolate but I could be wrong