Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-wzw2p Total loading time: 0 Render date: 2024-06-01T22:47:04.520Z Has data issue: false hasContentIssue false

4 - Basic SAC commands

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

COMMAND STYLE

SAC commands are typed from the command line or read from a file. After each command is processed, SAC reads another command from its input source until it is told to stop or the input is exhausted.

Commands are single verbs (e.g., READ, WRITE), or a compound phrase (e.g., FILTER-DESIGN). Abbreviations exist for the longer or commonly used command names. A series of options that control the command's actions follow the command name. Command names or options may be typed in upper or lower case. However, when file names appear in commands, case does matter, and SAC preserves it.

White space separates options and the command name, and can even precede the command name. This is useful for indenting groups of commands for documentation purposes.

Multiple commands may be placed on the same line separated by the “;” (semicolon) character and will be processed left-to-right as they appear on the command line. Any command whose first character is * is a comment and is ignored. Thus the string ; * introduces a comment in the command listings that follow.

SAC supplies default command options if they are not specified. Command options, once set, stay in force for future uses of the same command. This provides a way to tailor personal command defaults. SAC can read a file of commands setting your personal defaults before it reads the input. They will be described in detail in Section 4.10.

Type
Chapter
Information
The Seismic Analysis Code
A Primer and User's Guide
, pp. 17 - 37
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 coreplatform@cambridge.org 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
×