IRIS Knowledge Base

   Incorporated Research Institutions for Seismology




SAC file format

A SAC formatted data file generally contains a single, contiguous segment of time-series data structured as a header section followed by floating point data values.  The SAC file format can be either binary or alphanumeric (ASCII).  The binary variant can be in either big or little endian byte order; many, but not all, SAC readers will automatically detect the byte order of binary data files and swap input data as needed.

A SAC header contains details required for the identification (network, station, location, channel) and interpretation (start time, sample rate, sample count, etc.) of the time series in addition to fields for storing the coordinates of the station and optionally the event.  Two fields exist to describe a scaling factor and units of the resulting time series, beyond that there is usually no further instrument response information included.

All data samples in SAC are stored as floating point values, in the binary format they are 32-bit IEEE floats.  There is no standard way to denote a gap in the time series represented in a SAC file, multiple segments of a time series are generally represented using multiple SAC files.

The SAC format is also capable of representing spectral data and general X-Y data, these are not as commonly exchanged as those containing time series data.

Mapping between SEED and SAC channel identification nomenclature used by the DMC:
 SEED SAC Header variable
 Network KNETWK
 Station KSTNM
 Location ID KHOLE
 Channel KCMPNM


You can find out more about the SAC format and the SAC program in general from here:

SAC Data File Format
Header Varibles

SAC Tutorial and User's Manual
    http://www.iris.edu/manuals/sac/manual.html

SAC Software
    http://www.iris.edu/software/sac/

SAC (Seismic Analysis Code) is a general purpose interactive program designed for the study of sequential signals, especially timeseries data. Emphasis has been placed on analysis tools used by research seismologists in the detailed study of seismic events.

As a programming reference the sacformat.h attachment is a commonly used C header used to represent the SAC files, the binary SAC header is directly represented by the SACHeader struct.


Related Articles

No related articles were found.

Attachments

Visitor Comments

No visitor comments posted. Post a comment

Post Comment for "SAC file format"

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.

   Name:
   Email:
* Comment:
* Enter the code below:

 

Article Details

Last Updated
9th of February, 2010

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

100% thumbs up 0% thumbs down (1 vote)

How would you rate this answer?




Thank you for rating this answer.

Continue