<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Dear Dugdo,<div><br></div><div>Looks like you are reading a file of the incorrect byte order which is why you are getting values similar to</div><div>1e-38 and 1e28</div><div><br></div><div>Try using the sacswap utility to change the byte order.</div><div><font class="Apple-style-span" color="#000000">% sacswap </font><font class="Apple-style-span" color="#000000">2008.211.18.40.15.1695.II.PFO.00.BHN.R.SAC</font></div><div><br></div><div>Cheers</div><div>Brian</div><div><br></div><div><div><div>On Nov 24, 2008, at  6:37 PM , m tuji wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="font-family: -webkit-serif; -webkit-border-horizontal-spacing: 5px; -webkit-border-vertical-spacing: 5px; "><pre style="font-family: monospace; font-size: 9pt; ">Hi All,</pre><pre style="font-family: monospace; font-size: 9pt; ">The Matlab script rsac.m reads my sac data in Matlab environment, but mostly the values of the variables
are not correct, they are not even close. An example is given below. If you have any similar experience or suggestion, please give me your advice. </pre><pre style="font-family: monospace; font-size: 9pt; ">Thank you. <br>
</pre><pre style="font-family: monospace; font-size: 9pt; ">Dugda

Example:

<font color="#ff0000">>> </font>rsac('2008.211.18.40.15.1695.II.PFO.00.BHN.R.SAC')

ans =

dt: -428443552

beg: 4.5189e+28

e: 2.7179e+23

o: 2.0258e-05

a: 2.0962e-38

picks: [10x1 double]

 stla: 6.7842e+16

 stlo: 2.7884e-05

stel: 5.7492e-41

 stdp: -6.3553e-23

evla: 5.0318e-36

 evlo: 4.8871e-35

 evel: 2.0962e-38

evdp: 4.4312e-39

 mag: 2.0962e-38

user: [10x1 double]

 dist: 1.9288e-15

az: 2.9068e-05

baz: 8.8698e+16

gcarc: 2.2920e+35

 nz: [6x1 double]

npts: 1.3627e+09

kstnm: 'PFO'

kevnm: '-12345'

d: [14673x1 double]

 t: [20531x1 double]

depmin: -6.6898e+36

 depmax: 1.2877e+38

depmen: 7.9798e+33

filename: '2008.211.18.40.15.1695.II.PFO.00.BHN.R.SAC'

mytype: 'SAC_STRUCTURE'

<font color="#ff0000">>></font>
</pre><div><span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: -webkit-monospace; font-size: 12px; white-space: pre;"><br></span></div></span><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">sac-help mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:sac-help@iris.washington.edu">sac-help@iris.washington.edu</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.iris.washington.edu/mailman/listinfo/sac-help">http://www.iris.washington.edu/mailman/listinfo/sac-help</a></div> </blockquote></div><br></div></body></html>