provides a Fortran 90 module named `sacio` for reading and writting evenly-spaced SAC binary format files
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 dataTo 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 of sacio
module (THIS IS WHAT YOU REALLY NEED!)test/test_sacio_*.f90
show the usage of subroutines provided by sacio
moduleMakefile
: makefile showing how to compile and linkREADME.md
: this file.log.md
: the log filetest/testin.sac
: SAC file in binary formatRead examples for more details.
Compile & Link
$ gfortran -c sacio.f90
$ gfortran -c your_program.f90
$ gfortran your_program.o sacio.o -o your_program
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.!