Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-28 Thread John
Jeff and others, I have a working solution and a non-working solution. I'm wondering whether someone can help me understand the problems in the latter. Please forgive in advance the long post, but all of my code is here. First, you can get a dataset from :

[Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Hello, I'm trying to take a npstereographic grid of points and reproject it so that I can save out a file in regular 0.5 degree lat lon grid coordinates. The description of the grid points in the current projection is here: http://nsidc.org/data/docs/daac/nsidc0051_gsfc_seaice.gd.html I've

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread Jeff Whitaker
On 10/25/10 2:27 AM, John wrote: Hello, I'm trying to take a npstereographic grid of points and reproject it so that I can save out a file in regular 0.5 degree lat lon grid coordinates. The description of the grid points in the current projection is here:

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Jeff, thanks for the answer. Unfortunately I have a problem due to the 'polar' nature of the grid, the xin, yin values are not increasing. I tried both passing lat and lon grids or flattened vectors of the original data, but neither works. You can see my method here, which is a new method of my

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Apologies, I see I didn't need to change the xin, yin variables in the interp function. I have it working now, but I still don't quite have the plotting correct... be back with a report. -john On Mon, Oct 25, 2010 at 9:27 PM, John washa...@gmail.com wrote: Jeff, thanks for the answer.

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Closer, but still not quite right... not sure what I'm doing wrong?? http://picasaweb.google.com/lh/photo/6Dnylo0BcjX0A-wdmczmNg?feat=directlink Any ideas?? -john On Mon, Oct 25, 2010 at 9:53 PM, John washa...@gmail.com wrote: Apologies, I see I didn't need to change the xin, yin variables in

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread Jeff Whitaker
On 10/25/10 2:13 PM, John wrote: Closer, but still not quite right... not sure what I'm doing wrong?? John: Since I don't know what the plot should look like, it's hard to say. Perhaps the data is just transposed? Let me back up a bit and ask why you want to interpolate to a lat/lon

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread John
Jeff, Thank you again for the quick response. Unfortunately, I need to output the data onto a regular lat/lon 0.5 degree grid for including in another project (this is the format we need, so I'll write the data out to a file). For plotting, however, I would be interested in seeing the 'easy'

Re: [Matplotlib-users] reprojecting a grid / mlab or basemap or gdal??

2010-10-25 Thread Jeff Whitaker
On 10/25/10 2:28 PM, John wrote: Jeff, Thank you again for the quick response. Unfortunately, I need to output the data onto a regular lat/lon 0.5 degree grid for including in another project (this is the format we need, so I'll write the data out to a file). For plotting, however, I