Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-5wvtr Total loading time: 0 Render date: 2024-07-21T04:30:32.953Z Has data issue: false hasContentIssue false

2 - The SAC data format

Published online by Cambridge University Press:  05 October 2013

George Helffrich
Affiliation:
University of Bristol
James Wookey
Affiliation:
University of Bristol
Ian Bastow
Affiliation:
Imperial College London
Get access

Summary

PHILOSOPHY AND STRUCTURE

SAC file format

A seismic data trace is a set of data points that is continuous in time but that may not have been sampled at an even rate. SAC's simple approach to seismic data deems that there is one seismic trace per file. Each file contains a header that describes the trace (also known as metadata) and a section that contains the actual data. The header occupies a fixed-length position at the beginning of each file, followed by the variable-length data section.

Header data is of mixed type: integer and real values, logical (true/false) values, categorical values (distinct properties like explosive source, nuclear source, earthquake source), or text (station code, event identification, wave arrival type). The seismic data in a trace is a sequence of real-valued numbers representing the sampled physical property.

Alphanumeric and binary forms

There are both binary and alphanumeric (character) formats for a SAC file. The binary version is a more compact format that is efficiently read and written, while the alphanumeric format is easier for user programs to read and write.

The alphanumeric data format is intended for ease of reading and writing and for transfer between different machine types. In this format, the header data is organized into sections based on the type of data, with each section subdivided into lines. While not an intuitive organization, this makes it easier to read and write the header data because all of the data on each line of the file is of the same type: integer, real, etc.

Type
Chapter
Information
The Seismic Analysis Code
A Primer and User's Guide
, pp. 5 - 10
Publisher: Cambridge University Press
Print publication year: 2013

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×