/sac-lib

Matlab/Octave codes to read and write SAC seismic data file

Primary LanguageMATLABBSD 2-Clause "Simplified" LicenseBSD-2-Clause

sac-lib

Read/write functions for SAC files.

rdsac.m

RDSAC reads a seismic data file encoded in the IRIS/SAC binary format, and returns a time vector, a data vector and all header variables in a structure (field names correspond to exact IRIS variable names).

mksac.m

MKSAC writes a seismic data file in the IRIS/SAC binary standard format, from any data vector, origin time, and header field that user wants to define.

Author

François Beauducel, IPGP, beaudu, beauducel@ipgp.fr

Documentation

See functions documentation for detailed syntax and examples.

Other repository

Functions are also available at MathWorks File Exchange: View RDSAC and MKSAC: read and write SAC seismic data file on File Exchange with user comments and ratings.