Re: [Matplotlib-users] Can't plot NCEP reanalysis data

2014-03-05 Thread Fadzil Mnor
Hi all, thanks for your time. Paul, yes, it should be 'omg', I did some copy-and-paste error while writing the email and test the code at the same time. Alex, yes, that's the problem that i wasn't sure how to do. But thanks, I'll try to figure it out how and try in a bit. Cheers, Postgraduate

Re: [Matplotlib-users] Can't plot NCEP reanalysis data

2014-03-05 Thread Signell, Richard
Fadzil, Questions like this that involve code are great to ask on stackoverflow, tagging with netcdf, matplotlib and python. -Rich On Wed, Mar 5, 2014 at 6:57 AM, Fadzil Mnor fadzilmno...@gmail.com wrote: Hi all, thanks for your time. Paul, yes, it should be 'omg', I did some copy-and-paste

Re: [Matplotlib-users] Can't plot NCEP reanalysis data

2014-03-05 Thread Benjamin Root
The issue I see is one of ensuring that your inputs into contourf() are of the expected shapes. If you want a generalized script, then you will need to do various steps that can prepare 3d data into a 2d by assuming a particular level. The fun part of all of this is that different data sources

Re: [Matplotlib-users] Can't plot NCEP reanalysis data

2014-03-05 Thread Fadzil Mnor
Hi all, Signel, yeah, I should have post it on stackoverflow. Will do that next time. Benjamin, I've been using GrADS for the last 3 years, and just recently using python for more functionality (which came with a price,of course-learning curve). Seems like I 've found the solution. I should have

[Matplotlib-users] Can't plot NCEP reanalysis data

2014-03-04 Thread Fadzil Mnor
Hi all, I've been looking for solution on this for days, and seems like nothing works. I wrote this code to read TRMM data and it works, but somehow not working when I use the same script to read NCEP reanalysis data...which later I found out it worked for netCDF files with only 1 'level'

Re: [Matplotlib-users] Can't plot NCEP reanalysis data

2014-03-04 Thread Alex Goodman
Hi Fadzil, I am not sure if I fully understand your question. Are you simply trying to write a general script that plots contours for atmospheric netcdf data? At the very least, your error message has a very simple explanation in that the third argument of contourf (in this case, pcpr or omg?)