Yes, the problem is I missed the installation of python-numpy-devel. After installation of python-numpy-devel, I can see "/usr/lib/python2.6/site-packages/numpy/core/include/numpy/arrayobject.h".
So far, I installed python 2.6.5, matplotlib 1.0.0, lxml 2.2.6, numpy 1.5.0, scipy 0.8.0 and setuptools 0.6.
I did a initial test in the tutorial from Home · obspy/obspy Wiki · GitHub. It looks good at beginning, but when I call st.plot(color='k'), it complains that "No module named backend_tkagg". But where can I find out this module?
Below is my test message:
xiaowang@linux-5sog:~/Downloads> python
Python 2.6.5 (r265:79063, Jul 5 2010, 11:47:21)
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from obspy.core import read
st=read('http://examples.obspy.org/RJOB_061005_072159.ehz.new’)
print st
1 Trace(s) in Stream:
.RJOB..Z | 2005-10-06T07:21:59.849998Z - 2005-10-06T07:24:59.844998Z | 200.0 Hz, 36000 samples
print st[0].stats
network:
station: RJOB
location:
channel: Z
starttime: 2005-10-06T07:21:59.849998Z
endtime: 2005-10-06T07:24:59.844998Z
sampling_rate: 200.0
delta: 0.005
npts: 36000
calib: 0.0948999971151
_format: GSE2
gse2: AttribDict({'instype': ' ', 'datatype': 'CM6', 'hang': -1.0, 'auxid': 'RJOB', 'vang': -1.0, 'calper': 1.0})
st[0].stats.station
'RJOB'
st[0].stats.gse2.datatype
'CM6'
st[0].data
array([-38, 12, -4, ..., -14, -3, -9])
st[0].data[0:3]
array([-38, 12, -4])
len(st[0])
36000
st.plot(color='k')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/obspy.core-0.4.5.dev_r2095-py2.6.egg/obspy/core/stream.py", line 763, in plot
from obspy.imaging.waveform import WaveformPlotting
File "/usr/lib/python2.6/site-packages/obspy.imaging-0.4.5.dev_r2079-py2.6.egg/obspy/imaging/waveform.py", line 37, in <module>
import matplotlib.pyplot as plt
File "/usr/lib/python2.6/site-packages/matplotlib/pyplot.py", line 95, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File "/usr/lib/python2.6/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
globals(),locals(),[backend_name])
ImportError: No module named backend_tkagg
Thanks,
Xiao