how to use 'convolve/filter' package?

René Bastian rbastian at free.fr
Sun Oct 15 03:50:33 CDT 2006


Le Dimanche 15 Octobre 2006 08:28, Nao Suzuki a écrit :
> Hello there,
>
> My name is Nao Suzuki and I'm a postdoc at Berkeley Lab.
>
> I've been using numarray about a year, and I found it
> very useful and I appreciate your excellent work!
>
> Today, I've been trying to take the advantage of filter
> packages but none of them work so far.  Here is the
> attempt to reproduce what's shown in the manual.
>
> >>> from numarray import *
> >>> a=[0,0,0,1,0,0,0]
> >>> correlate1d(a, [1, 1, 1])
>
> Traceback (most recent call last):
>     File "<stdin>", line 1, in ?
> NameError: name 'correlate1d' is not defined

May be it depends which version of numarray, but try
something like

import numarray.nd_image as NDI

NDI.correlate1d(a, [1, 1, 1])

it works with numarray 1.5

>
> Could someone tell me what I'm missing?  Do I need to include
> something special?  Please let me know if you can give me some
> hints.  I'm stuck here for long time now.
>
> Thank you very much!
>
> --Nao
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion

-- 
René Bastian
http://www.musiques-rb.org
http://pythoneon.musiques-rb.org




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Numpy-discussion mailing list