![](https://secure.gravatar.com/avatar/b951736e99a6f8d9129537b5fea565fa.jpg?s=120&d=mm&r=g)
Hello, I have a data set of x,y,z values. The y values are regularly spaced (half degree latitude), the x values are irregular (10 degrees north of 70, 2 degrees between 60 and 70N, and half degree from 50 to 70N.). The extents of my grid is 50-90N, and -180,180 (W-E) I am trying to resample this to a .5 degree regular grid, but I haven't had any success thus far. Here is my code: NOTE: y is a vector of latitudes at 0.5 degree from 50-90N (containing repeated values) x is a vector with lon values for every y, not regular. (containing repeated values) z is a vector of z values for each x,y pair SO: #Create half degree lat,lon grids lons = np.arange(x.min(),x.max(),0.5,'f') lats = np.arange(y.min(),y.max(),0.5,'f') # create interpolator z_interp = interp2d(x,y,z) Z = z_interp(lons,lats) But when I plot my Z it looks strange, and does not line up with my expected values. Does anyone know another better approach? -- View this message in context: http://www.nabble.com/2d-interpolation%2C-non-regular-lat-lon-grid-tp2490968... Sent from the Scipy-User mailing list archive at Nabble.com.