I have a set o data (stored in 2D numpy arrays) representing simulations for a same problem. However, each simulation comes from a different model, which results in different resolutions for each of them. For example, these are some of the simulations' sizes:
- 1159 x 1367
- 144 x 157
- 72 x 82
- 446 x 500
- 135 x 151
What I'd like to do is to convert them all to the same resolution, for instance, 144 x 157. I believe I have to perform an interpolation, however, I'm not sure which method to use in Python.
I've been reading about these:
- scipy.interpolate.griddata
- scipy.ndimage.interpolation.zoom.html
- scipy.interpolate.RegularGridInterpolator.html
- scipy.ndimage.interpolation.map_coordinates.html
The (3) and (4) seems to fit best the problem, however, I'm unsure about how to make them return a new gridded (2D) data, with an specified resolution.