A C library for reading and writing SAC files in your own C programs.
The library contains two files:
sacio.h
: Head file for SAC file format, and prototype for SAC IO functions.sacio.c
: Definitions of several SAC IO functions.
The library provides following functions:
read_sac_head
: read SAC header onlyread_sac
: read SAC binary dataread_sac_xy
: read SAC binary XY dataread_sac_pdw
: read SAC data in a partial data window (cut option)write_sac
: write SAC binary datawrite_sac_xy
: write SAC binary XY datanew_sac_head
: create a minimal SAC headersac_head_index
: return the index of a SAC head fieldissac
: Check if a file in in SAC format
The sacio.c
library was originally written by Prof. Lupei Zhu, and further
modified and improved by Dongdong Tian.