Vous êtes sur la page 1sur 3

Kanchanaburi campus

Earthquake Phan Chiang Rai 20140505


(Http://sboonchaisuk.weebly.com/blog/earthquake-phan-chiangrai-20140505)
5/15/2014

Seismograms of the Earthquake Magnitude 6.0 (USGS, 6.3 TMD) at Phan, Chiang Rai, Thailand on 05 May 2014 at
11:08 UTC or 18:08 local time
displacement

velocity

acceleration

Change Waveform MiniSeed Format To Sac Using Mseed2sac


(Http://sboonchaisuk.weebly.com/blog/change-waveform-miniseedformat-to-sac-using-mseed2sac)
8/20/2012

- download mseed2sac from


http://www.iris.edu/pub/programs/converters/
- extract and and run the following command in terminal
make [in terminal] ; require fortran95 and gcc installed

- after compiled we get mseed2sac file


- to convert miniseed to sac format
- type interminal

mseed2sac filename

- we will get sac files for each channel

Matsac - Open Sac File With Matlab (Http://sboonchaisuk.weebly.com


/blog/matsac-open-sac-file-with-matlab)
8/20/2012

-download Matsac from http://geophysics.eas.gatech.edu/people/zpeng/Teaching/Sac_Tutorial_2006/


-- Matsac was Written by Zhigang Peng and Xianglei Huang and their co-worker
Contents
Program
Description
fget_sac.m main code to load sac data into matlab
sachdr.m
sac.m

subroutine to convert the sachdr into readble struture array


subroutine to load binary sac data

newSacHeader.m subroutine to generate a sac hdr


rdSacHead.m read header of SAC format data
rdSac.m
read SAC format data
wtSac.m
sacfft.m

write SAC format data


a subroutine to compute FFT for SAC data

Howto use Matsac


- open Matlab
- go to Matsac foldear
- open sac file by using this command
[t,data,SAChdr] = fget_sac(filename)

SAC: Calculates The Spectral Estimate Using The Power Density


Spectra Method. (Http://sboonchaisuk.weebly.com/blog/saccalculates-the-spectral-estimate-using-the-power-density-spectramethod)
8/20/2012

This article is based on website : http://www.iris.edu/manuals/sac/SAC_Manuals/SPE_Manual.html#Theory


In this article, I will show an example to calculate Power Spectral Density (PSD) by using SAC subprocess called SPE
SPE is a spectrum estimation package intended primarily for use with stationary random processes.
It contains three different spectral estimation techniques: Power Density Spectra (PDS), Maximum Likelihood Method
(MLM), and Maximum Entropy Method (MEM).These are all indirect methods, because they use a sample correlation
function, rather than the data itself, to estimate the spectral content.
SAC> read seismogram ; read 1 seismogram
SAC> qdp off ; turn of quick and dirty plot
SAC> p1 ; plot seismogram

SAC> rmean ; remove mean


SAC> rtrend ; remove linear trend
SAC> SPE ; run SPE subprocess
SAC/SPE>cor ; compute correlation
SAC/SPE>plotcor ; plot correlation

SAC/SPE>psd ;select one of the three spectral estimation techniques using the PDS, MLM, or MEM commands
SAC/SPE>plotspe ; plot spe

SAC/SPE>quitsub ; quit subprocess

SAC: Recfn: Compare.macro (Http://sboonchaisuk.weebly.com


/blog/sac-recfn-comparemacro)
8/20/2012

xlim 0 35
qdp 1200
fileid t n
color on inc on list r b
r wvfrm01
sqr
int
setbb spwr &1,depmax
do file wild syn01.01??
xvp .1 .6
yvp 0.15 0.9
r wvfrm01
subf $file
sqr
int
setbb misfit &1,depmax
evaluate to c0 %misfit / %spwr
evaluate to c1 100 * %c0
evaluate to fracmis 100 - %c1
setbb sfracmis ' ( BEFORE '.' ' %fracmis ' ) '
title on
title '(CONC 'This Model Fits ' ' ( BEFORE '.' ' %fracmis ' ) ' ' percent of the signal power.' )'
r $file wvfrm01
ch b 0
begfr
p2
xvp .7 .9
setbb suf (AFTER '.' $file )
r inv.mdl.%suf%.vp target_model.vp
xlim 3 9
ylim -60 1
title off
fileid l ll
p2
xlim off
ylim off
xvp 0.15 0.9
yvp 0.15 0.9
fileid l ur
endfr
pause
enddo

Vous aimerez peut-être aussi