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

2014-03-05 Thread Fadzil Mnor
or you might have (lon, lat, time), or maybe (z, lat, > lon). If your data sources are CF-compliant, then you might be able to take > advantage of tools such as ncview that tries to be very intelligent about > all of these fun issues. > > Cheers! > Ben Root > > > > On

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

2014-03-05 Thread Fadzil Mnor
e reasonable to expect the script to work, but if you have multiple > vertical levels and don't select a specific one in your code, then you > can't use contourf, simple as that. > > Does that help at all? > Alex > > > > On Tue, Mar 4, 2014 at 8:22 PM, Fadzil

[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' (Zsize=1

Re: [Matplotlib-users] Area averaged

2014-02-23 Thread Fadzil Mnor
Thanks Alex for the reply. So, that script calculates the global SST. What if when we want to calculate for only in specific box? For example, SST over this area only: --- 10 N | | |

[Matplotlib-users] Area averaged

2014-02-23 Thread Fadzil Mnor
Hi, I just started using Python for the last few weeks, and previously been using GrADS for around 4 years. I have trouble looking for a simplest way to calculate area average, let say I need to calculate a SST over a region of 20S-10N and 130E-170E. I know how to get one point values of SST vs Tim