0
Python Creating a grid with x, y coordinates in each square
Hey so I’m trying to create a grid to interpolate my function to each cell in the grid. If I have a list of x coordinates and a list of y coordinates how would I combine them so my x axis is my x[] and my y axis is my y[]? But each grid in the cell contains the appropriate x y coordinate. In R I believe you can create a grid using max and mins of the x y coordinates. Is there a way to do this in python? Thank you
1 Resposta
+ 2
The math behind this is far above my level but maybe this will get you on the right track. Check the numpy and scipy libraries.
https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.griddata.html