[obspy-users] Removing instrument response for accelerometers

Yannik Behr yannik at yanmail.de
Wed Aug 3 00:03:54 CEST 2011


Hi Austin,

This looks like an ObsPy bug to me. I therefore submitted a bug report 
with your message. I hope that's ok.

To resolve this it would be very helpful if you could send me one of 
your files together with the zeros-information.

Best,
Yannik


On 3/08/2011 07:59, Holland, Austin A. wrote:
> Traceback (most recent call last):
>   File "./seisan_gm.py", line 75, in <module>
>     seisutils.response.plot(paz,sta,chan,"staresp/%s_%s.pdf"%(sta,chan))
>   File 
> "/home/analyst/lib/python2.7/site-packages/seisutils/response.py", 
> line 77, in plot
>     h,f = pazToFreqResp(paz['poles'], paz['zeros'], paz['gain'], 0.01, 
> 16384, freq=True)
>   File 
> "/usr/local/lib/python2.7/site-packages/obspy.signal-0.4.9.dev_r2625-py2.7-linux-x86_64.egg/obspy/signal/invsim.py", 
> line 241, in pazToFreqResp
>     _w, h = scipy.signal.freqs(a, b, f * 2 * np.pi)
>   File 
> "/usr/local/lib64/python2.7/site-packages/scipy/signal/filter_design.py", 
> line 90, in freqs
>     h = polyval(b, s) / polyval(a, s)
>   File 
> "/usr/local/lib/python2.7/site-packages/numpy-1.6.1rc1-py2.7-linux-x86_64.egg/numpy/lib/polynomial.py", 
> line 641, in polyval
>     for i in range(len(p)):
> TypeError: len() of unsized object
>




More information about the obspy-users mailing list