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

seeking for help in SeisIO.jl's read_data() function #111

Closed
ouyk6 opened this issue Mar 14, 2023 · 2 comments
Closed

seeking for help in SeisIO.jl's read_data() function #111

ouyk6 opened this issue Mar 14, 2023 · 2 comments

Comments

@ouyk6
Copy link

ouyk6 commented Mar 14, 2023

Dear Professor Clements,
I am a first-year graduate student from China. I still get some wrongs in SeisIO's read_data fuction.
I can't read the data in sac format for disk like yours in the website
SeisNoise.jl/preprocessing.md at master · tclements/SeisNoise.jl (github.com).
My codes are as follows, the program running result is shown in the attached picture.
julia>using Pkg
julia>Pkg.build()
julia>using SeisIO,SeisNoise,Plots
julia>S=read_data("sac","2022.07.31.00.40.31.YD302.BHE.sac")
#"2022.07.31.00.40.31.YD302.BHE.sac" is the name of a sac file
QQ图片20230314221708

@tclements
Copy link
Collaborator

The .sac file is most likely not in the current working directory. I suggest reading the documentation for the pwd, cd, and readdir functions in the Julia manual: https://docs.julialang.org/en/v1/base/file/. You may also want to consult a translation of the Julia documentation: https://docs.juliacn.com/latest/

@ouyk6
Copy link
Author

ouyk6 commented Mar 15, 2023

Thank you, I have sovled it.

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