Thread: how to pick several data

Started: 2006-08-25 14:01:23
Last activity: 2006-08-25 18:32:20
Topics: SAC Help
Heloise.Cadet@ujf-grenoble.fr
2006-08-25 14:01:23

Hello

I'd like to pick several data using this kind of macro:

bd x
qdp off

do event wild *0
setbb fileV ( conc $event '.NS1.sac')
setbb fileN ( conc $event '.EW1.sac')
setbb fileE ( conc $event '.UD1.sac')
r %fileV %fileN %fileE
p1
oapf name APF1
ppk m on
enddo
quit


my data are that kind: name.00.NS1.sac for example
but I have too many events so the macro does'nt work, the "plot window"
goes open and close as soon as it is open!

Do you have any idea to solve my problem?

Thanks for your help.

Best regards

Heloise Cadet
PhD Student from LGIT, Grenoble and CETE, Nice, France


--

Peter Goldstein, Ph.D. (925) 423-1231 (office)
L-103, PO Box 808 (925) 422-5844 (fax)
Livermore, CA 94551 peterg<at>llnl.gov (email)
web page: http://www.llnl.gov/sac


--




  • Arthur Snoke
    2006-08-25 18:32:20
    There is a known bug in the wild * call. If the number of characters read
    get too large, it bombs. It is not the number of files read. (At least
    it was not for me.) The way I have ;gotten around it is to rename my
    files to have shorter names before the do wild loop.

    Hope this helps.

    On Fri, 25 Aug 2006 Heloise.Cadet<at>ujf-grenoble.fr wrote:


    Hello

    I'd like to pick several data using this kind of macro:

    bd x
    qdp off

    do event wild *0
    setbb fileV ( conc $event '.NS1.sac')
    setbb fileN ( conc $event '.EW1.sac')
    setbb fileE ( conc $event '.UD1.sac')
    r %fileV %fileN %fileE
    p1
    oapf name APF1
    ppk m on
    enddo
    quit


    my data are that kind: name.00.NS1.sac for example
    but I have too many events so the macro does'nt work, the "plot window"
    goes open and close as soon as it is open!

    Do you have any idea to solve my problem?

    Thanks for your help.

    Best regards

    Heloise Cadet
    PhD Student from LGIT, Grenoble and CETE, Nice, France


    --

    Peter Goldstein, Ph.D. (925) 423-1231 (office)
    L-103, PO Box 808 (925) 422-5844 (fax)
    Livermore, CA 94551 peterg<at>llnl.gov (email)
    web page: http://www.llnl.gov/sac


    --



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


01:52:55 v.b3198453