You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
1
(35) |
2
(29) |
3
(12) |
4
|
5
(8) |
6
(5) |
7
(3) |
8
(38) |
9
(15) |
10
(20) |
11
(14) |
12
(12) |
13
(17) |
14
(6) |
15
(41) |
16
(38) |
17
(31) |
18
(7) |
19
(14) |
20
(12) |
21
(3) |
22
(3) |
23
(15) |
24
(4) |
25
|
26
(3) |
27
(2) |
28
(7) |
29
(16) |
30
(17) |
31
(10) |
|
|
|
Is there a PyNIO binary for windows as on their download page there are only Linux, Mac or Solaris versions? Jeff Whitaker wrote: > > vas...@ya... 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 of the grib file is great but I am not >> able to download Nio. The link they sent me to confirm the registration >> goes to a page that is not available... > Anton: I downloaded and installed it this morning and it worked fine. > If you're having problems, I'd suggest emailing them - they are quite > responsive. >> 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? >> > It's a matter of reading the CSV files into 2D arrays (lons,lats,data). > I don't have time right now to work that out for your data. Anyway, I > think you'll be happier in the long run if you bite the bullet now and > learn how to use PyNIO to read the data. > > -Jeff >> Thanks a lot! >> Anton Vasilescu >> >> >> Jeff Whitaker wrote: >> >>> antonv wrote: >>> >>>> Better yet, here is the file that I am using on my testing but keep in >>>> mind >>>> that it's a 33mb file: >>>> http://downloads.75ive.com/enp.t18z.grib.grib2 >>>> >>>> >>> Anton: I had already downloaded a file from the ftp site, so here's an >>> example script: >>> >>> import Nio >>> from mpl_toolkits.basemap import Basemap >>> import matplotlib.pyplot as plt >>> import numpy as np >>> f = Nio.open_file('akw.t00z.grib.grib2') >>> print f.variables.keys() >>> lons = f.variables['lon_0'][:] >>> # flip latitudes so data goes S-->N >>> lats = f.variables['lat_0'][::-1] >>> times = f.variables['forecast_time0'][:] >>> datavar = f.variables['WWSWHGT_P0_L1_GLL0'] >>> ntime = 10 >>> data = datavar[ntime,::-1] >>> print f.variables['WWSWHGT_P0_L1_GLL0'] >>> print data.min(), data.max() >>> m = Basemap(projection='cyl',llcrnrlat=lats[0],llcrnrlon=lons[0],\ >>> urcrnrlat=lats[-1],urcrnrlon=lons[-1],resolution='l') >>> x, y = m(*np.meshgrid(lons, lats)) >>> levels = np.arange(0,9.1,0.5) >>> m.contourf(x,y,data,levels) >>> m.drawcoastlines() >>> m.fillcontinents() >>> m.drawparallels(np.arange(40,81,10),labels=[1,0,0,0]) >>> m.drawmeridians(np.arange(150,241,10),labels=[0,0,0,1]) >>> m.drawparallels(np.arange(40,81,10),labels=[1,0,0,0]) >>> m.drawmeridians(np.arange(150,241,10),labels=[0,0,0,1]) >>> plt.title(datavar.long_name+' %s hr fcst'%(times[ntime]),fontsize=12) >>> plt.colorbar(orientation='horizontal',shrink=0.9,format="%g") >>> plt.show() >>> >>> The resulting plot is attached. >>> >>> Note you will need the Basemap toolkit (available from the matplotlib >>> download site). If you don't want to plot the coastlines, you can just >>> use plt.contourf. You'll also need PyNIO >>> (http://www.pyngl.ucar.edu/Nio.shtml) to read the GRIB file. >>> >>> The png produced by this script is attached. >>> >>> Let me know if you have any questions. >>> >>> -Jeff >>> >>>> >>>> antonv wrote: >>>> >>>> >>>>> 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. >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >>> >> Quoted from: >> http://www.nabble.com/Plotting-NOAA-data...-tp21139727p21149409.html >> >> > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/Plotting-NOAA-data...-tp21139727p21150608.html Sent from the matplotlib - users mailing list archive at Nabble.com.
vas...@ya... 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 of the grib file is great but I am not able to download Nio. The link they sent me to confirm the registration goes to a page that is not available... Anton: I downloaded and installed it this morning and it worked fine. If you're having problems, I'd suggest emailing them - they are quite responsive. > 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? > It's a matter of reading the CSV files into 2D arrays (lons,lats,data). I don't have time right now to work that out for your data. Anyway, I think you'll be happier in the long run if you bite the bullet now and learn how to use PyNIO to read the data. -Jeff > Thanks a lot! > Anton Vasilescu > > > Jeff Whitaker wrote: > >> antonv wrote: >> >>> Better yet, here is the file that I am using on my testing but keep in >>> mind >>> that it's a 33mb file: >>> http://downloads.75ive.com/enp.t18z.grib.grib2 >>> >>> >> Anton: I had already downloaded a file from the ftp site, so here's an >> example script: >> >> import Nio >> from mpl_toolkits.basemap import Basemap >> import matplotlib.pyplot as plt >> import numpy as np >> f = Nio.open_file('akw.t00z.grib.grib2') >> print f.variables.keys() >> lons = f.variables['lon_0'][:] >> # flip latitudes so data goes S-->N >> lats = f.variables['lat_0'][::-1] >> times = f.variables['forecast_time0'][:] >> datavar = f.variables['WWSWHGT_P0_L1_GLL0'] >> ntime = 10 >> data = datavar[ntime,::-1] >> print f.variables['WWSWHGT_P0_L1_GLL0'] >> print data.min(), data.max() >> m = Basemap(projection='cyl',llcrnrlat=lats[0],llcrnrlon=lons[0],\ >> urcrnrlat=lats[-1],urcrnrlon=lons[-1],resolution='l') >> x, y = m(*np.meshgrid(lons, lats)) >> levels = np.arange(0,9.1,0.5) >> m.contourf(x,y,data,levels) >> m.drawcoastlines() >> m.fillcontinents() >> m.drawparallels(np.arange(40,81,10),labels=[1,0,0,0]) >> m.drawmeridians(np.arange(150,241,10),labels=[0,0,0,1]) >> m.drawparallels(np.arange(40,81,10),labels=[1,0,0,0]) >> m.drawmeridians(np.arange(150,241,10),labels=[0,0,0,1]) >> plt.title(datavar.long_name+' %s hr fcst'%(times[ntime]),fontsize=12) >> plt.colorbar(orientation='horizontal',shrink=0.9,format="%g") >> plt.show() >> >> The resulting plot is attached. >> >> Note you will need the Basemap toolkit (available from the matplotlib >> download site). If you don't want to plot the coastlines, you can just >> use plt.contourf. You'll also need PyNIO >> (http://www.pyngl.ucar.edu/Nio.shtml) to read the GRIB file. >> >> The png produced by this script is attached. >> >> Let me know if you have any questions. >> >> -Jeff >> >>> >>> antonv wrote: >>> >>> >>>> 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. >>>> >>>> >>>> >>>> >>> >>> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> > Quoted from: > http://www.nabble.com/Plotting-NOAA-data...-tp21139727p21149409.html > >
antonv wrote: > Better yet, here is the file that I am using on my testing but keep in mind > that it's a 33mb file: > http://downloads.75ive.com/enp.t18z.grib.grib2 > Anton: I had already downloaded a file from the ftp site, so here's an example script: import Nio from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np f = Nio.open_file('akw.t00z.grib.grib2') print f.variables.keys() lons = f.variables['lon_0'][:] # flip latitudes so data goes S-->N lats = f.variables['lat_0'][::-1] times = f.variables['forecast_time0'][:] datavar = f.variables['WWSWHGT_P0_L1_GLL0'] ntime = 10 data = datavar[ntime,::-1] print f.variables['WWSWHGT_P0_L1_GLL0'] print data.min(), data.max() m = Basemap(projection='cyl',llcrnrlat=lats[0],llcrnrlon=lons[0],\ urcrnrlat=lats[-1],urcrnrlon=lons[-1],resolution='l') x, y = m(*np.meshgrid(lons, lats)) levels = np.arange(0,9.1,0.5) m.contourf(x,y,data,levels) m.drawcoastlines() m.fillcontinents() m.drawparallels(np.arange(40,81,10),labels=[1,0,0,0]) m.drawmeridians(np.arange(150,241,10),labels=[0,0,0,1]) m.drawparallels(np.arange(40,81,10),labels=[1,0,0,0]) m.drawmeridians(np.arange(150,241,10),labels=[0,0,0,1]) plt.title(datavar.long_name+' %s hr fcst'%(times[ntime]),fontsize=12) plt.colorbar(orientation='horizontal',shrink=0.9,format="%g") plt.show() The resulting plot is attached. Note you will need the Basemap toolkit (available from the matplotlib download site). If you don't want to plot the coastlines, you can just use plt.contourf. You'll also need PyNIO (http://www.pyngl.ucar.edu/Nio.shtml) to read the GRIB file. The png produced by this script is attached. Let me know if you have any questions. -Jeff > > > > antonv wrote: > >> 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. >> >> >> > >
Better yet, here is the file that I am using on my testing but keep in mind that it's a 33mb file: http://downloads.75ive.com/enp.t18z.grib.grib2 antonv wrote: > > 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: http://www.nabble.com/Plotting-NOAA-data...-tp21139727p21148866.html Sent from the matplotlib - users mailing list archive at Nabble.com.
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: http://www.nabble.com/Plotting-NOAA-data...-tp21139727p21148738.html Sent from the matplotlib - users mailing list archive at Nabble.com.
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 mlab. >>> Kurt >>> >>> >> It was first released in 0.98.3. >> >> Ryan >> >> -- >> Ryan May >> Graduate Research Assistant >> School of Meteorology >> University of Oklahoma >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> >> > >
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 > > -- > Ryan May > Graduate Research Assistant > School of Meteorology > University of Oklahoma > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/Plotting-NOAA-data...-tp21139727p21148270.html Sent from the matplotlib - users mailing list archive at Nabble.com.
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
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 file, it must be on a regular grid. Therefore, you don't need to use griddata to grid your data. The best way to go would be to use PyNIO to read the grib data into a 2D array, and then plot it directly with contourf (perhaps using the Basemap toolkit if you want to display a map underneath). If you point me to your GRIB file I can show you what I mean. -Jeff > from numpy.random import uniform, seed > from matplotlib.mlab import griddata > import matplotlib.pyplot as plt > import numpy as np > > r = > mlab.csv2rec('D:/SocalScubaInfo/Data/Outputs/CSV_files/DIRPW_12191800.csv') > > x = r.longitude > y = r.latitude > z = r.dirpw_200812191800 > xi = r.x > yi = r.y > > # grid the data. > zi = griddata(x,y,z,xi,yi) > > CS = plt.contourf(xi,yi,zi,15,cmap=plt.cm.jet) > plt.colorbar() # draw colorbar > > plt.show() > > > Which still errors out: 'output grid defined by xi,yi must be monotone > increasing' > The xi and yi are from the first 2 columns of the csv file and I thought > they were monotonically increasing. What am I missing? > > 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 the code that I am >> using: >> >> import matplotlib.pyplot as plt >> import matplotlib.mlab as mlab >> >> r = >> mlab.csv2rec('D:/SocalScubaInfo/Data/Outputs/CSV_files/DIRPW_12191800.csv') >> plt.contour(r.longitude, r.latitude) >> plt.show() >> >> Which errors out and requires a 2d array. >> >> By the way, here is a data file: http://downloads.75ive.com/testdata.csv >> http://downloads.75ive.com/testdata.csv >> >> Any help is appreciated! >> >> > >
Sorry, I meant the griddata module as part of mlab.KurtFrom: pet...@ms...To: mat...@li...Subject: RE: Plotting NOAA data...Date: 2008年12月23日 09:28:49 -0700 I don't seem to have a mlab module as part of matplotlib. Is that something new?Kurt
I don't seem to have a mlab module as part of matplotlib. Is that something new?Kurt
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 import griddata import matplotlib.pyplot as plt import numpy as np r = mlab.csv2rec('D:/SocalScubaInfo/Data/Outputs/CSV_files/DIRPW_12191800.csv') x = r.longitude y = r.latitude z = r.dirpw_200812191800 xi = r.x yi = r.y # grid the data. zi = griddata(x,y,z,xi,yi) CS = plt.contourf(xi,yi,zi,15,cmap=plt.cm.jet) plt.colorbar() # draw colorbar plt.show() Which still errors out: 'output grid defined by xi,yi must be monotone increasing' The xi and yi are from the first 2 columns of the csv file and I thought they were monotonically increasing. What am I missing? 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 the code that I am > using: > > import matplotlib.pyplot as plt > import matplotlib.mlab as mlab > > r = > mlab.csv2rec('D:/SocalScubaInfo/Data/Outputs/CSV_files/DIRPW_12191800.csv') > plt.contour(r.longitude, r.latitude) > plt.show() > > Which errors out and requires a 2d array. > > By the way, here is a data file: http://downloads.75ive.com/testdata.csv > http://downloads.75ive.com/testdata.csv > > Any help is appreciated! > -- View this message in context: http://www.nabble.com/Plotting-NOAA-data...-tp21139727p21147081.html Sent from the matplotlib - users mailing list archive at Nabble.com.
>2008年12月23日 Eric Firing <ef...@ha...>: > 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 = >> mlab.csv2rec('D:/SocalScubaInfo/Data/Outputs/CSV_files/DIRPW_12191800.csv') >> plt.contour(r.longitude, r.latitude) >> plt.show() >> >> Which errors out and requires a 2d array. >> >> By the way, here is a data file: http://downloads.75ive.com/testdata.csv >> http://downloads.75ive.com/testdata.csv >> >> Any help is appreciated! > > > I assume you meant to include your dependent variable in the call to > contour, not just your longitude and latitude. In any case, you need to > grid your data onto a 2D array. In the mpl examples, see griddata_demo.py. If you just want a quick overview, you could also try >>> plt.scatter(r.longitude, r.latitude, c=r.dirpw_200812191800, s=5, edgecolors='none') >>> plt.colorbar() >>> plt.show() Cheers, Scott
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 the code that I am using: > > import matplotlib.pyplot as plt > import matplotlib.mlab as mlab > > r = > mlab.csv2rec('D:/SocalScubaInfo/Data/Outputs/CSV_files/DIRPW_12191800.csv') > plt.contour(r.longitude, r.latitude) > plt.show() > > Which errors out and requires a 2d array. > > By the way, here is a data file: http://downloads.75ive.com/testdata.csv > http://downloads.75ive.com/testdata.csv > > Any help is appreciated! I assume you meant to include your dependent variable in the call to contour, not just your longitude and latitude. In any case, you need to grid your data onto a 2D array. In the mpl examples, see griddata_demo.py. Eric
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 using: import matplotlib.pyplot as plt import matplotlib.mlab as mlab r = mlab.csv2rec('D:/SocalScubaInfo/Data/Outputs/CSV_files/DIRPW_12191800.csv') plt.contour(r.longitude, r.latitude) plt.show() Which errors out and requires a 2d array. By the way, here is a data file: http://downloads.75ive.com/testdata.csv http://downloads.75ive.com/testdata.csv Any help is appreciated! -- View this message in context: http://www.nabble.com/Plotting-NOAA-data...-tp21139727p21139727.html Sent from the matplotlib - users mailing list archive at Nabble.com.