Re: [Matplotlib-users] plotting a contour map from CSV file

2008-07-29 Thread Tim Michelsen
Hello Jeff, I just wanna give feedback on what got me going here: data preparation ### data is loaded from a CSV file ### lats = y # data[:,0] ## lon => x lons = x # data[:,1] ## values => z values = z #data[:,2] ### lat_uniq = list(set(lats.tolist())) nlats = len(lat_uniq) lon_uniq = list(se

Re: [Matplotlib-users] plotting a contour map from CSV file

2008-07-14 Thread Tim Michelsen
Hello Jeff, > Timme: Here's one way to do it many thanks so far. I still have to inspect and improve my script. But at least your code lead me to some contourd surface. I will come back and tell if it worked. Unfortunately I cannot disclose the data nor the results because of copyright issues.

Re: [Matplotlib-users] plotting a contour map from CSV file

2008-07-14 Thread Jeff Whitaker
Tim Michelsen wrote: > Hello, > thanks. > I checked again from contour_demo.py of the basemap distribution. > > There lats, lons are uniquely monoton increasing from 0-360 and from -90 to > 90. > In my case data is written row-by-row: > * increasing from lowest latitude western most longitude to e

Re: [Matplotlib-users] plotting a contour map from CSV file

2008-07-14 Thread Tim Michelsen
Hello, thanks. I checked again from contour_demo.py of the basemap distribution. There lats, lons are uniquely monoton increasing from 0-360 and from -90 to 90. In my case data is written row-by-row: * increasing from lowest latitude western most longitude to easternmost longitude and then increas

Re: [Matplotlib-users] plotting a contour map from CSV file

2008-07-14 Thread Jeff Whitaker
Tim Michelsen wrote: > Hello Jeff, > > - Points stored in the above descripbed format (lat, lon, value)? > This one I solved using a m.scatter() function > > - Interpolate a grid of data points by using different interpolation methods like inverse distance whe

Re: [Matplotlib-users] plotting a contour map from CSV file

2008-07-14 Thread Tim Michelsen
Hello Jeff, > >> - Points stored in the above descripbed format (lat, lon, value)? This one I solved using a m.scatter() function > >>- Interpolate a grid of data points by using different interpolation >>> methods like inverse distance wheighting, natural neighbor interpolation, etc. to ge

Re: [Matplotlib-users] plotting a contour map from CSV file

2008-07-14 Thread Jeff Whitaker
Jeff Whitaker wrote: > Tim Michelsen wrote: > >> Dear Matplotlib-Users, >> I am tryring to create a contour plot over a basemap. >> >> My main problem is creating the array for the Z values as a basis for the >> plt.contour command from a CSV file where latitude, longitude and value are >> store

Re: [Matplotlib-users] plotting a contour map from CSV file

2008-07-14 Thread Jeff Whitaker
Tim Michelsen wrote: > Dear Matplotlib-Users, > I am tryring to create a contour plot over a basemap. > > My main problem is creating the array for the Z values as a basis for the > plt.contour command from a CSV file where latitude, longitude and value are > stored column-wise: > > lat; lon;v

[Matplotlib-users] plotting a contour map from CSV file

2008-07-14 Thread Tim Michelsen
Dear Matplotlib-Users, I am tryring to create a contour plot over a basemap. My main problem is creating the array for the Z values as a basis for the plt.contour command from a CSV file where latitude, longitude and value are stored column-wise: lat;lon;value 50; 10; 6 ... The d