Closed AntSimi closed 2 years ago
Functions take arguments in longitude (x), latitude (y) order.
g=pyinterp.Grid2D(axis[1], axis[0], z.T)
x, y = np.array([20]), np.array([10])
print(z.shape)
print(x - 360, y, pyinterp.bivariate(g, x - 360, y, num_threads=1))
print(x, y, pyinterp.bivariate(g, x, y, num_threads=1))
print(x + 360, y, pyinterp.bivariate(g, x + 360, y, num_threads=1))
(9, 18)
[-340] [10] [200.]
[20] [10] [200.]
[380] [10] [200.]
Describe the bug Wrong result with wrapping
To Reproduce
Output
Expected behavior Result must be 200 for each call.
Pyinterp/Numpy/Python version information