Re: [Matplotlib-users] Plotting NOAA data...

2009-01-01 Thread antonv
So my beginner saga continues with another question: I am trying to create a custom colormap using ListedColormap. The custom color map is for a range of values between 0 and 20 while the data in my file is between 0 and 8. Now my issue is that when plotting the graph the colormap is using the 0

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-29 Thread Jeff Whitaker
antonv wrote: Hey Jeff, I've got it sorted out a bit now. You're right the data was an output from Degrib and I had the option to output the csv's with or without data in the land areas. As before I was using a program that was placing the pixels in an image based on the X and Y columns it

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-28 Thread Jeff Whitaker
antonv wrote: It seems that I just cannot grasp the way the data needs to be formatted for this to work... I've used the griddata sample that James posted but it takes about 10 minutes to prep the data for plotting so that solution seems to be out of discussion. I guess my issue is that I

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-28 Thread antonv
Hey Jeff, I've got it sorted out a bit now. You're right the data was an output from Degrib and I had the option to output the csv's with or without data in the land areas. As before I was using a program that was placing the pixels in an image based on the X and Y columns it didn't create an

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-27 Thread antonv
It seems that I just cannot grasp the way the data needs to be formatted for this to work... I've used the griddata sample that James posted but it takes about 10 minutes to prep the data for plotting so that solution seems to be out of discussion. I guess my issue is that I don't know what type

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-24 Thread Mauro Cavalcanti
Dear Anton, 2008/12/23 antonv vasilescu_an...@yahoo.com: Also, because I figured out the data I need and already have the scripts in place to extract the CSV files I would really like to keep it that way. Would it be possible to just show me how to get from the csv file to the plot? Here

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-24 Thread Jeff Whitaker
Mauro Cavalcanti wrote: Dear Anton, 2008/12/23 antonv vasilescu_an...@yahoo.com: Also, because I figured out the data I need and already have the scripts in place to extract the CSV files I would really like to keep it that way. Would it be possible to just show me how to get from

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Scott Sinclair
2008/12/23 Eric Firing efir...@hawaii.edu: antonv wrote: Hi all, I am trying to plot data from a grib file from noaa ... Here is a sample of the code that I am using: import matplotlib.pyplot as plt import matplotlib.mlab as mlab r =

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread antonv
Scott, the Scatter function works great but i am really looking to use the contourf one. Eric, you're right, the way I had it initially it was missing the z value. I looked at the griddata example and here is the code I came up with: from numpy.random import uniform, seed from matplotlib.mlab

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread KURT PETERS
I don't seem to have a mlab module as part of matplotlib. Is that something new?Kurt-- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread KURT PETERS
Sorry, I meant the griddata module as part of mlab.KurtFrom: petersk...@msn.comto: matplotlib-us...@lists.sourceforge.netsubject: RE: Plotting NOAA data...Date: Tue, 23 Dec 2008 09:28:49 -0700 I don't seem to have a mlab module as part of matplotlib. Is that something

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Jeff Whitaker
antonv wrote: Scott, the Scatter function works great but i am really looking to use the contourf one. Eric, you're right, the way I had it initially it was missing the z value. I looked at the griddata example and here is the code I came up with: Since you read your data from a GRIB

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Ryan May
KURT PETERS wrote: Sorry, I meant the griddata module as part of mlab. Kurt It was first released in 0.98.3. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma --

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread antonv
Hi Jeff, here is a link to the csv file: http://downloads.75ive.com/testdata.csv Thanks again for all your help guys! Really appreciated! Ryan May-3 wrote: KURT PETERS wrote: Sorry, I meant the griddata module as part of mlab. Kurt It was first released in 0.98.3. Ryan --

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Jeff Whitaker
antonv wrote: Hi Jeff, here is a link to the csv file: http://downloads.75ive.com/testdata.csv Thanks again for all your help guys! Really appreciated! I meant the original GRIB file ... -Jeff Ryan May-3 wrote: KURT PETERS wrote: Sorry, I meant the griddata module as part of

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread antonv
Here is the link to the folder that has the grib files. They are updated every 3 hours: ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/wave/prod/ Any of the files there would have the same info only at different times of day. -- View this message in context:

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread Jeff Whitaker
vasilescu_an...@yahoo.com wrote: Hi Jeff, This example is just awesome! I really appreciate the time you put into this but it's way way over my head... There are a couple issues I have especially that I just started using python and matplotlib a couple days ago. First, the direct reading

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-23 Thread antonv
Is there a PyNIO binary for windows as on their download page there are only Linux, Mac or Solaris versions? Jeff Whitaker wrote: vasilescu_an...@yahoo.com wrote: Hi Jeff, This example is just awesome! I really appreciate the time you put into this but it's way way over my head... There

[Matplotlib-users] Plotting NOAA data...

2008-12-22 Thread antonv
Hi all, I am pretty new to matplotlib and I have a big issue... I am trying to plot data from a grib file from noaa and I am not sure what's the best way to go about it. Until now, I am extracting the data i need in CSV files but I am not able to plot it. Here is a sample of the code that I am

Re: [Matplotlib-users] Plotting NOAA data...

2008-12-22 Thread Eric Firing
antonv wrote: Hi all, I am pretty new to matplotlib and I have a big issue... I am trying to plot data from a grib file from noaa and I am not sure what's the best way to go about it. Until now, I am extracting the data i need in CSV files but I am not able to plot it. Here is a sample of