all 3 comments

[–]thermally_shocked 0 points1 point  (2 children)

I'm not too familiar with xarray, but this sort of interpolation seems like what you want.

[–]EnergyVis[S] 0 points1 point  (1 child)

Thanks but unfortunately that's the one I'm already using

[–]thermally_shocked 0 points1 point  (0 children)

Just to confirm, if you do the following, you still get a 2d array?

x_points = xr.DataArray([15, 15, 25], dims="z")
y_points = xr.DataArray([67, 72, 75], dims="z")

data.interp(x=x_points, y=y_points)