Thread: Re: PROBLEM WITH SPECTROGRAM IN SAC 32 BITS

Started: 2015-09-11 11:51:26
Last activity: 2015-09-11 19:01:47
Topics: SAC Help
Milton Plasencia
2015-09-11 11:51:26
Silvana,

Checking old e-mails of the sac-help, i find an e-mail from Brian Savage (Set,15 2009)
where him suggest the update of sac software to avoid the X problem.

Cheers,

Milton



On Sep 10, 2015, at 23:49, Silvana Spagnotto <pampa113<at>gmail.com> wrote:

I tried it both ways, even on very short windows, of 5 seconds. I tried too with "decimate" to lower points and the same, the error is

Window size: 200 Overlap: 180 FFT size: 512
Warning: ORDER begin reset to 1/2 length of correlation window.
ORDER = 100
Spectrogram dimensions are 512 by 141 .
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 72 (X_PutImage)
Serial number of failed request: 93
Current serial number in output stream: 94


or at best case, only sac opened the window but do not plot the spectrogram





2015-09-10 14:59 GMT-03:00 <m.miller<at>dgeo.udec.cl <m.miller<at>dgeo.udec.cl>>:

Silvana,

The file 2005.102.03.46.00.0000.XJ.HUDS..HHN.D.SAC is only 300 seconds
long, and has a high-frequency component. I would suggest reducing the
values of window and slice in the spectrogram command, and increasing
ymax.

Also if you cut around the event then it looks better!

qdp off
cut 50 80
r 2005.102.03.46.00.0000.XJ.HUDS..HHN.D.SAC
rmean
rtr
taper
spectrogram window 2 slice 0.2 method mem order 400 ymin 0 ymax 20 cbar
off noscaling








Hello:
I need plot a spectrogram, but this script only work in SAC 64 bits

sac > r 2005.*SAC
SAC> rmean
SAC> rtr
SAC> taper
SAC> interpolate delta 0.2
SAC> spectrogram window 200 slice 50 method mem order 400 ymin 0.0 ymax
0.1
cbar off noscaling

in 32 bits the error is

Window size: 999 Overlap: 749 FFT size: 2048
Spectrogram dimensions are 512 by 3 .
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 72 (X_PutImage)
Serial number of failed request: 69
Current serial number in output stream: 70



Attachment data

----------------------
SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
Update subscription preferences at http://ds.iris.edu/account/profile/






--
Dra. Silvana Liz Spagnotto
Becaria posdoctoral de Conicet - Docente de la Universidad Nacional de San Luis
Ejercito de los Andes 950 - 5700 - San Luis - Argentina



  • Brian Savage
    2015-09-11 15:11:32
    Silvana,

    Can you let me know what version of sac you are using and what operating system you are running ?

    Thanks,
    Brian

    On Sep 10, 2015, at 10:52 PM, Milton Plasencia <mpplasencia<at>gmail.com> wrote:

    Silvana,

    Checking old e-mails of the sac-help, i find an e-mail from Brian Savage (Set,15 2009)
    where him suggest the update of sac software to avoid the X problem.

    Cheers,

    Milton



    On Sep 10, 2015, at 23:49, Silvana Spagnotto <pampa113<at>gmail.com> wrote:

    I tried it both ways, even on very short windows, of 5 seconds. I tried too with "decimate" to lower points and the same, the error is

    Window size: 200 Overlap: 180 FFT size: 512
    Warning: ORDER begin reset to 1/2 length of correlation window.
    ORDER = 100
    Spectrogram dimensions are 512 by 141 .
    X Error of failed request: BadMatch (invalid parameter attributes)
    Major opcode of failed request: 72 (X_PutImage)
    Serial number of failed request: 93
    Current serial number in output stream: 94


    or at best case, only sac opened the window but do not plot the spectrogram





    2015-09-10 14:59 GMT-03:00 <m.miller<at>dgeo.udec.cl>:

    Silvana,

    The file 2005.102.03.46.00.0000.XJ.HUDS..HHN.D.SAC is only 300 seconds
    long, and has a high-frequency component. I would suggest reducing the
    values of window and slice in the spectrogram command, and increasing
    ymax.

    Also if you cut around the event then it looks better!

    qdp off
    cut 50 80
    r 2005.102.03.46.00.0000.XJ.HUDS..HHN.D.SAC
    rmean
    rtr
    taper
    spectrogram window 2 slice 0.2 method mem order 400 ymin 0 ymax 20 cbar
    off noscaling








    Hello:
    I need plot a spectrogram, but this script only work in SAC 64 bits

    sac > r 2005.*SAC
    SAC> rmean
    SAC> rtr
    SAC> taper
    SAC> interpolate delta 0.2
    SAC> spectrogram window 200 slice 50 method mem order 400 ymin 0.0 ymax
    0.1
    cbar off noscaling

    in 32 bits the error is

    Window size: 999 Overlap: 749 FFT size: 2048
    Spectrogram dimensions are 512 by 3 .
    X Error of failed request: BadMatch (invalid parameter attributes)
    Major opcode of failed request: 72 (X_PutImage)
    Serial number of failed request: 69
    Current serial number in output stream: 70



    Attachment data

    ----------------------
    SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

    Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/






    --
    Dra. Silvana Liz Spagnotto
    Becaria posdoctoral de Conicet - Docente de la Universidad Nacional de San Luis
    Ejercito de los Andes 950 - 5700 - San Luis - Argentina



    ----------------------
    SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

    Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


  • Silvana Spagnotto
    2015-09-11 19:01:47
    Now Sac work correctly!!! the problem was solved!

    I had the Version 00.59.48, very old... with Version 101.5c "spectrogram"
    work perfectly

    2015-09-10 23:51 GMT-03:00 Milton Plasencia <mpplasencia<at>gmail.com>:

    Silvana,

    Checking old e-mails of the sac-help, i find an e-mail from Brian Savage
    (Set,15 2009)
    where him suggest the update of sac software to avoid the X problem.

    Cheers,

    Milton



    On Sep 10, 2015, at 23:49, Silvana Spagnotto <pampa113<at>gmail.com> wrote:

    I tried it both ways, even on very short windows, of 5 seconds. I tried
    too with "decimate" to lower points and the same, the error is

    Window size: 200 Overlap: 180 FFT size: 512
    Warning: ORDER begin reset to 1/2 length of correlation window.
    ORDER = 100
    Spectrogram dimensions are 512 by 141 .
    X Error of failed request: BadMatch (invalid parameter attributes)
    Major opcode of failed request: 72 (X_PutImage)
    Serial number of failed request: 93
    Current serial number in output stream: 94


    or at best case, only sac opened the window but do not plot the
    spectrogram





    2015-09-10 14:59 GMT-03:00 <m.miller<at>dgeo.udec.cl>:


    Silvana,

    The file 2005.102.03.46.00.0000.XJ.HUDS..HHN.D.SAC is only 300 seconds
    long, and has a high-frequency component. I would suggest reducing the
    values of window and slice in the spectrogram command, and increasing
    ymax.

    Also if you cut around the event then it looks better!

    qdp off
    cut 50 80
    r 2005.102.03.46.00.0000.XJ.HUDS..HHN.D.SAC
    rmean
    rtr
    taper
    spectrogram window 2 slice 0.2 method mem order 400 ymin 0 ymax 20 cbar
    off noscaling








    Hello:
    I need plot a spectrogram, but this script only work in SAC 64 bits

    sac > r 2005.*SAC
    SAC> rmean
    SAC> rtr
    SAC> taper
    SAC> interpolate delta 0.2
    SAC> spectrogram window 200 slice 50 method mem order 400 ymin 0.0 ymax
    0.1
    cbar off noscaling

    in 32 bits the error is

    Window size: 999 Overlap: 749 FFT size: 2048
    Spectrogram dimensions are 512 by 3 .
    X Error of failed request: BadMatch (invalid parameter attributes)
    Major opcode of failed request: 72 (X_PutImage)
    Serial number of failed request: 69
    Current serial number in output stream: 70



    Attachment data

    ----------------------
    SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

    Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/






    --
    Dra. Silvana Liz Spagnotto
    Becaria posdoctoral de Conicet - Docente de la Universidad Nacional de San
    Luis
    Ejercito de los Andes 950 - 5700 - San Luis - Argentina





    --
    Dra. Silvana Liz Spagnotto
    Becaria posdoctoral de Conicet - Docente de la Universidad Nacional de San
    Luis
    Ejercito de los Andes 950 - 5700 - San Luis - Argentina

02:55:18 v.b3198453