Introduction
SAC files hold seismic time series for the Seismic Analysis Code program. The
documentation is maintained by the EarthScope Consortium, formerly IRIS. Converters
such as mseed2sac name their output with the extension .SAC.
Structure
A file is either alphanumeric or binary, and binary files exist in either byte
order. A header of floating-point, double, integer, Boolean and string fields comes
first; the first data vector, of npts 32-bit floating-point values,
begins at word 158. A second vector follows for unevenly spaced, spectral, XY or XYZ
data. Header version 7 adds a footer of double-precision values that version 6 does
not have.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the list of header fields and their positions, the alphanumeric layout and how byte order is detected.
- Viewer: the site has no viewer for this format.
Links
Software
- SAC (Seismic Analysis Code) – the program the format is named after
- sac-format – C++ library for SAC files
- mseed2sac – converts miniSEED data to SAC files
Reference
- sac-format: SAC-file format – the library’s account of the header and data layout
- mseed2sac manual page – file naming and the output encodings