[CIG-SEISMO] SPECFEM3D_GLOBE - Need help with seismogram processing using provided scripts

daniel peter dpeter at Princeton.EDU
Tue Feb 7 13:25:41 PST 2012


Hi Shahar,

the best way to compare them is to output seismograms in SAC-format  
directly with the SPECFEM3D_GLOBE simulation. i.e. you need to set the  
flag in the DATA/Par_file:
..
OUTPUT_SEISMOS_SAC_ALPHANUM     = .true.
..
or
..
OUTPUT_SEISMOS_SAC_BINARY       = .true.
..

we here mostly use the second, binary format. this will provide the  
correct SAC headers for your comparisons (includes source/station  
infos and correct event time). using asc2sac only provides basic infos  
in the SAC header, so the scripts for comparisons with real data will  
need some additional arguments (e.g. -m CMTSOLUTION).

however, if you insist on using asc2sac, here is how you get it:

1. obviously, you will need first a SAC installation. you can get the  
software from:
http://www.iris.edu/software/sac/

2. please try out the attached Makefile. put it into the UTILS/lib  
folder and modify the header in the Makefile to use your correct  
compilers and SAC installation path. then just type: > make

that should compile you the executable "asc2sac". when trying this  
out, please note that you would call this version: "./asc2sac  
my_trace.ascii "
instead "/opt/seismo-util/bin/asc2sac my_trace.ascii 10000  
my_trace.ascii.sac". there are two different versions of this  
executable, the one provided in UTILS/lib takes the former argument  
list. anyway, when you try this out, check if the results look o.k.

best wishes,
daniel



ps. i also put this Makefile into the svn version, you could just use:  
 > svn update



--
Daniel Peter
Department of Geosciences
318 Guyot Hall
Princeton University
Princeton, NJ 08540, USA

Tel: +1 (609) 258-5031
url: http://www.princeton.edu/~dpeter



On Feb 7, 2012, at 2:45 PM, Shahar Barak wrote:

> Hi,
>
> I am trying to compare the SPECFEM3D_GLOBE synthetic seismograms  
> with real seismograms.
> I am trying to use the provided script process_syn.pl and I don't  
> know how to get the asc2sac to run.
> The ascii2sac.csh file says:
> # uses `asc2sac` binary which can be compiled from UTILS/lib/asc2sac.c
> # (requires SAC libraries for compilation)
> How do I compile asc2sac.c?
> I tried runnning: gcc UTILS/lib/asc2sac.c and got:
> UTILS/lib/asc2sac.c: In function 'asc2sac':
> UTILS/lib/asc2sac.c:32: error: 'sac_int_t' undeclared (first use in  
> this function)
> UTILS/lib/asc2sac.c:32: error: (Each undeclared identifier is  
> reported only once
> UTILS/lib/asc2sac.c:32: error: for each function it appears in.)
> UTILS/lib/asc2sac.c:32: error: expected ';' before 'npts'
> UTILS/lib/asc2sac.c:54: error: 'max_npts' undeclared (first use in  
> this function)
> UTILS/lib/asc2sac.c:55: error: 'npts' undeclared (first use in this  
> function)
> UTILS/lib/asc2sac.c:55: error: 'nconv' undeclared (first use in this  
> function)
> UTILS/lib/asc2sac.c:80: error: 'nerr' undeclared (first use in this  
> function)
> UTILS/lib/asc2sac.c:83: error: 'itmp' undeclared (first use in this  
> function)
>
> Help...
>
> Thanks,
>
> Shahar
> -- 
> Shahar Barak
> =======================================
> Crustal Geophysics Research Group
> Department of Geophysics, Stanford University
> 397 Panama Mall, Stanford CA 94305-2215
> Mitchell Building, room 463
> Office: (650) 725 8229
> Cell: (650) 276 6169
> Home: (650) 497 3818
> shaharb at stanford.edu
>
> _______________________________________________
> CIG-SEISMO mailing list
> CIG-SEISMO at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-seismo/attachments/20120207/8e365dee/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 1287 bytes
Desc: not available
Url : http://geodynamics.org/pipermail/cig-seismo/attachments/20120207/8e365dee/attachment.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-seismo/attachments/20120207/8e365dee/attachment-0001.htm 


More information about the CIG-SEISMO mailing list