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

irisFetch does not support V7 SAC files #16

Open
lsunm opened this issue May 4, 2022 · 2 comments
Open

irisFetch does not support V7 SAC files #16

lsunm opened this issue May 4, 2022 · 2 comments
Assignees

Comments

@lsunm
Copy link

lsunm commented May 4, 2022

I posted this issue on SAC Help and was told to make the issue known here.

In the words of one commenter: "Briefly, the code cannot handle V7 SAC files properly; if the version number is not 6, the code assumes it is just a byte-swapped SAC file. It does not recognize that V7 headers exist."

http://ds.iris.edu/message-center/thread/8336/#m-11223

Please help with this issue! What other options to I have in the meantime? Using sac2mat?

@chad-earthscope chad-earthscope changed the title LEVEN = TRUE but IrisFetch (Matlab) says "Data is unevenly spaced" irisFetch does not support V7 SAC files May 4, 2022
@lsunm
Copy link
Author

lsunm commented May 4, 2022

rdsac works with NVHDR = 7

@chad-earthscope
Copy link

Thanks for the bug report @lsunm.

If you do not require the features of V7 SAC, one option is to use sac to convert the data to V6 format, or avoid converting to V7 in the first place.

Or you can use rdsac instead as you have found, although looking at that code:
https://www.mathworks.com/matlabcentral/fileexchange/46356-rdsac-and-mksac-read-and-write-sac-seismic-data-file
I do not see any check for a header version, so not sure how that is working.

@rtweekly-iris rtweekly-iris self-assigned this May 20, 2022
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

3 participants