Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smart24/write: Unsupported data type int32 in Stream[0].data #12

Open
helenabuurman opened this issue Nov 21, 2019 · 1 comment
Open
Assignees

Comments

@helenabuurman
Copy link

st.write from a smart24 call throws the error:

File "", line 1, in
st.write('test.mseed',format="MSEED")
File "C:\Users\helena\Anaconda3\envs\obspy\lib\site-packages\obspy\core\stream.py", line 1443, in write
write_format(self, filename, **kwargs)
File "C:\Users\helena\Anaconda3\envs\obspy\lib\site-packages\obspy\io\mseed\core.py", line 789, in _write_mseed
raise Exception(msg)
Exception: Unsupported data type int32 in Stream[0].data

Replicate using a list of cd11 files:
st = Stream()
for cd11 in cd11list:
st += Smart24(cd11).st
st.write('test.mseed',format="MSEED")

@helenabuurman
Copy link
Author

helenabuurman commented Nov 23, 2019

I should have added:
I got around this issue by changing like 485 of smart24.py to:
data = obspy.core.compatibility.from_buffer(csf['channel_data'],dtype=np.int)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants