python, numpy through enthought -
Python 2.7.2 |EPD 7.1-1 (32-bit)| (default, Jul  3 2011, 15:13:59) [MSC v.1500 32 bit (Intel)] on win32
imports at the top of the script:

import numpy as N
import matplotlib.pyplot as plt
from numpy import ma as MA
from mpl_toolkits.basemap import Basemap
import os

On Thu, Mar 1, 2012 at 4:42 PM, Benjamin Root <> wrote:

On Wednesday, February 29, 2012, questions anon wrote:
I have had some progress reading in the data but am unsure how to create lats and lons from the info I have (see above).
the error I am receiving is:

Traceback (most recent call last):
  File "d:\", line 40, in <module>
    CS = map.contourf(x,y, f, 15,
  File "C:\Python27\lib\site-packages\mpl_toolkits\basemap\", line 3072, in contourf
AttributeError: logical_or

from the below code:


f=N.genfromtxt(onefile, skip_header=6,  dtype=float, names=True)
print f

map = Basemap(projection='merc',llcrnrlat=-45,urcrnrlat=-9,
xi=N.linspace(111.975, 156.275, 886)
yi=N.linspace(-44.525, -9.975, 691)
CS = map.contourf(x,y, f, 15,
l,b,w,h =0.1,0.1,0.8,0.8
cax = plt.axes([l+w+0.025, b, 0.025, h])
plt.colorbar(CS,cax=cax, drawedges=True)
plt.savefig((os.path.join(OutputFolder, 'rainfall.png')))

How did you install numpy?  Which version are you using?  What are your imports at the top of this script?

Ben Root