How to improve performance when interpolating on 3d data with SciPy
I have 3d-data representing the atmosphere. Now I want to interpolate this data to a common Z coordinate (what I mean by that should be clear from the function's doctring). The following code works fine, but I was wondering if there were a way to improve the performance ... def interpLevel(grid,value,data,interp='linear'): """ Interpolate 3d data to a common z coordinate. Can be used to calculate the wind/pv/whatsoever values for a common potential temperature / pressure level. grid : numpy.ndarray The grid. For example the potential temperature values for the whole 3d grid. value : float The