sac2wav converts SAC files into a WAV file for audio playback.
sac2wav [-f file.wav] [-g gain] [-h rate] [-l lapse] [-m mean] [-vFHQSTUVW] a.SAC [b.SAC ...]
sac2wav sorts and concatenates multiple SAC files chronologically to create a single output WAVE file.
- Output filename: year.julian_day.hour.minute.second.millsecond.network.station.location.component.WAV of the first sampled point.
- Time lapse: 1 hour of real time equals 30 seconds of audio playback.
- Fails if output file would be too large.
- Store a few SAC files in a directory, all recorded within 24 hours of each other.
- Run "sac2wav *.sac" in that directory to create a new .WAV file.
- Open the named .WAV file in your favorite audio player.
The sac2wav calculation uses two passes. The first pass gathers statistics, separately for each input SAC file, to calculate the best acoustic center (mean) and acoustic amplification (gain) for each SAC file. The second pass generates the output file, adjusting the mean and gain for each extent of data. Gaps in time are filled by audio silence.
This version of sac2wav ignores poles and zeros and applies no filters, except for mean, gain, and time lapse.
- Category: Conversion Program
- Language: C / C++
SAC, ASCII, BINARY, WAV, wave, audio, timelapse, audification, sonification
by Rick DeWitt, (c) 2004, 2015
dewitt.rick at gmail.com
Mill Creek, WA 98012
Manager: Rick DeWitt