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

Using miniseed file in dispersion_curves.py #18

Open
jimmytseng79 opened this issue Jul 11, 2016 · 0 comments
Open

Using miniseed file in dispersion_curves.py #18

jimmytseng79 opened this issue Jul 11, 2016 · 0 comments

Comments

@jimmytseng79
Copy link

Hello, I'm a master student from National Chen Kung University, Taiwan.

I read the article "Rayleigh wave group velocities at periods of 6-23s across Brazil from ambient noise tomography", and i'm very interested in the tomographic inversion.

I have already finished the cross-correlation function processing, and it output the reference waveform with the miniseed format. I saw the code in dispersion_curves.py that the waveform format is pickle. I have also tried to get the pickle file from obspy with the following code:

import obspy.core as obs
st = obs.read('test.mseed')
st.write('test.pickle', format='PICKLE')

And it prints
AttributeError: 'Stream' object has no attribute 'FTANs'

Then i tried another way.

import pickle
from pysismo import pscrosscorr
f = open(name='test.mseed', mode='rb')
xc = pscrosscorr.CrossCorrelationCollection()
with open('test.pickle', 'wb') as f:
    pickle.dump(xc, f, protocol=2)

It can work, but it prints

Exporting FTANs of 0 pairs to file ./output/FTAN/FTAN_test.pdf
and dispersion curves to file ./output/FTAN/FTAN_test.pickle

Here is my reference miniseed file.
https://goo.gl/VFzXuz

@jimmytseng79 jimmytseng79 changed the title use miniseed file in dispersion_curves.py Using miniseed file in dispersion_curves.py Jul 11, 2016
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

1 participant