resample_data

pySurf.data2D.resample_data(d1, d2, method='mc', onfirst=False)

Resample d1 [Ny’ x Nx’] on x and y from d2[Nx x Ny].

d1 and d2 are passed as list of data,x,y. Return a [Nx x Ny] data. onfirst allow to resample second array on first (same as swapping args). To get a (plottable) matrix of data use: plt.imshow(rpoints[:,2].reshape(ygrid.size,xgrid.size)).