Thread: help on rsac.m

Started: 2008-11-25 02:37:27
Last activity: 2008-11-25 18:16:23
Topics: SAC Help
Dugda
2008-11-25 02:37:27
Hi All,

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.

Thank you.

Dugda

Example:
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'


  • Brian Savage
    2008-11-25 18:16:23
    Dear Dugdo,

    Looks like you are reading a file of the incorrect byte order which
    is why you are getting values similar to
    1e-38 and 1e28

    Try using the sacswap utility to change the byte order.
    % sacswap 2008.211.18.40.15.1695.II.PFO.00.BHN.R.SAC

    Cheers
    Brian

    On Nov 24, 2008, at 6:37 PM , m tuji wrote:

    Hi All,
    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.
    Thank you.

    Dugda

    Example:

    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'



    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


04:29:15 v.b3198453