From: John <was...@gm...> - 2007-10-31 19:18:30
|
No, it didn't get cut off, I just decided to move that section forward before the code and forgot to delete that line ;) Okay, let's see... 1) Yes, I've left them in for the moment since I saw that they will be ignored, and I'm playing with different projections... seems it doesn't hurt. 2) Yes, it would appear zdat is an array of 0.0 3) With contourf, I get a mismatch... not sure where: ValueError: shape mismatch: objects cannot be broadcast to a single shape File "c:\Python\mod\plotPickle.py", line 30, in <module> fp_plot(z); File "c:\Python\mod\plotf.py", line 55, in fp_plot m.contourf(lons,lats,Zdat) File "c:\Python25\Lib\site-packages\matplotlib\toolkits\basemap\basemap.py", line 2436, in contourf xymask = NX.logical_or(NX.greater(x,1.e20),NX.greater(y,1.e20)) Here is the information about the numpy.arrays I'm using: >>> N.shape(lons);N.shape(lats);N.shape(Zdat) (360,) (180,) (180, 360) I tried: m.contourf(lons,lats,Zdat.transose()) as well, and receive the same error. Thanks again! |