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

Shahar Barak shaharb at stanford.edu
Tue Feb 7 11:45:36 PST 2012


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*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-seismo/attachments/20120207/bc3a323b/attachment.htm 


More information about the CIG-SEISMO mailing list