Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-09 Thread Scott Sinclair
On 8 September 2011 19:20, Matt Funk matze...@gmail.com wrote: Hi, sorry that it has taken me so long to reply. Anyway, i could be wrong, but i don't think that the code:     xi = np.linspace(llcrnlon,urcrnlon,1000)     yi = np.linspace(llcrnlat,urcrnlat,1000) will produce a grid which

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-09 Thread Matt Funk
On 9/9/2011 6:42 AM, Scott Sinclair wrote: On 8 September 2011 19:20, Matt Funk matze...@gmail.com wrote: Hi, sorry that it has taken me so long to reply. Anyway, i could be wrong, but i don't think that the code: xi = np.linspace(llcrnlon,urcrnlon,1000) yi =

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-08 Thread Matt Funk
Hi, sorry that it has taken me so long to reply. Anyway, i could be wrong, but i don't think that the code: xi = np.linspace(llcrnlon,urcrnlon,1000) yi = np.linspace(llcrnlat,urcrnlat,1000) will produce a grid which gives the lat/lon coordinates with 1km spacing. The reason being is that

[Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Matt Funk
Hi, i want to interpolate irregular spaced satellite data onto a regular spaced grid. The regular spaced grid should have cell sizes of 1km^2. Is it possible to use basemap to create such a grid. It looked like it includes some facilities like that, but i am not sure if they are meant to be used

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Aman Thakral
Hi Matt, Something like this?: def create_map(ax, llcrnrlon,llcrnrlat,urcrnrlon,urcrnrlat): m = Basemap(llcrnrlon=llcrnrlon,llcrnrlat=llcrnrlat,urcrnrlon=urcrnrlon,urcrnrlat=urcrnrlat,resolution='i',projection='cyl',lon_0=(urcrnrlon+llcrnrlon)/2,lat_0=(urcrnrlat+llcrnrlat)/2)

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Matt Funk
Hi Aman, thanks for your code. I am testing it right now, but i think this might what i need. Not sure if you know this: what is the difference between: 1) scipy.interpolate.griddata 2) matplotlib.mlab.griddata For 2) you have specify the interpolation method and i think the calling convention is

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Benjamin Root
On Tue, Sep 6, 2011 at 2:48 PM, Matt Funk matze...@gmail.com wrote: Hi Aman, thanks for your code. I am testing it right now, but i think this might what i need. Not sure if you know this: what is the difference between: 1) scipy.interpolate.griddata 2) matplotlib.mlab.griddata For 2)

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Paul Hobson
On Tue, Sep 6, 2011 at 12:58 PM, Benjamin Root ben.r...@ou.edu wrote: I don't know the full details, but the idea was that we didn't want to have SciPy as a dependency, so mlab was used to replicate many of the functions found in SciPy.  I don't know why the calling conventions are different,

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-06 Thread Eric Firing
On 09/06/2011 12:55 PM, Paul Hobson wrote: On Tue, Sep 6, 2011 at 12:58 PM, Benjamin Rootben.r...@ou.edu wrote: I don't know the full details, but the idea was that we didn't want to have SciPy as a dependency, so mlab was used to replicate many of the functions found in SciPy. I don't know