This project provides a Fortran 90 module named sacio
for reading and writting evenly-spaced SAC binary format files.
SAC I/O subroutines in the module:
sacio_readhead
: Read SAC binary header onlysacio_readsac
: Read SAC binary filesacio_writesac
: Write SAC binary filesacio_readsac_cut
: Read SAC binary file with cut optionsacio_nullhead
: Change a SAC header to undefinedsacio_newhead
: Create a ready-to-use SAC header for evenly-spaced SAC data
To contact me: wangliang0222@foxmail.com
Click "Download ZIP" button on the webpage.
Download it with the address directly: https://codeload.github.com/wangliang1989/sacio_Fortran/zip/master
Use git:
$ git clone https://github.com/wangliang1989/sacio_Fortran.git
sacio.f90
: source code ofsacio
module (THIS IS WHAT YOU REALLY NEED!)- examples:
test/test_sacio_*.f90
show the usage of subroutines provided bysacio
module Makefile
: makefile showing how to compile and linkREADME.md
: this file.log.md
: the log file- example data:
test/testin.sac
: SAC file in binary format
-
Read examples for more details.
-
Compile & Link
$ gfortran -c sacio.f90 $ gfortran -c your_program.f90 $ gfortran your_program.o sacio.o -o your_program
- 2015-09-11: v1.0
Copyright 2015 Liang Wang @ Guilin University of Technology, Dongdong Tian @ USTC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.!