image thumbnail

F_SAC: Manipulating SAC files

version 1.0.0.0 (7.86 KB) by Whyjay Zheng
Read/Write/Change data and header from SAC formatted files.

535 Downloads

Updated 24 Mar 2015

View License

FREAD_SAC reads a IRIS/SAC file in specified machine format, and returns in 2 types: 1) time vector, data vector, and header structure; or 2) a whole structure variable whose fields are time, data, and header separately. The field names of a SAC structure variable correspond to standard IRIS SAC header version 6.0 field names, in lower case.
FWRITE_SAC reads a SAC structure variable (which can be produced by your own or FREAD_SAC), completes the missing headers, and/or write it to a file in specified machine format.

Cite As

Whyjay Zheng (2021). F_SAC: Manipulating SAC files (https://www.mathworks.com/matlabcentral/fileexchange/50198-f_sac-manipulating-sac-files), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!