<div dir="ltr">Hi,<br><br>I am trying to compare the SPECFEM3D_GLOBE synthetic seismograms with real seismograms.<br>I am trying to use the provided script <a href="http://process_syn.pl">process_syn.pl</a> and I don&#39;t know how to get the asc2sac to run.<br>
The ascii2sac.csh file says:<br><span style="color:rgb(51,51,255)"># uses `asc2sac` binary which can be compiled from UTILS/lib/asc2sac.c</span><br style="color:rgb(51,51,255)"><span style="color:rgb(51,51,255)"># (requires SAC libraries for compilation)</span><br>
How do I compile asc2sac.c?<br>I tried runnning: gcc UTILS/lib/asc2sac.c and got:<br clear="all"><span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c: In function &#39;asc2sac&#39;:</span><br style="color:rgb(51,51,255)">
<span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:32: error: &#39;sac_int_t&#39; undeclared (first use in this function)</span><br style="color:rgb(51,51,255)"><span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:32: error: (Each undeclared identifier is reported only once</span><br style="color:rgb(51,51,255)">
<span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:32: error: for each function it appears in.)</span><br style="color:rgb(51,51,255)"><span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:32: error: expected &#39;;&#39; before &#39;npts&#39;</span><br style="color:rgb(51,51,255)">
<span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:54: error: &#39;max_npts&#39; undeclared (first use in this function)</span><br style="color:rgb(51,51,255)"><span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:55: error: &#39;npts&#39; undeclared (first use in this function)</span><br style="color:rgb(51,51,255)">
<span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:55: error: &#39;nconv&#39; undeclared (first use in this function)</span><br style="color:rgb(51,51,255)"><span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:80: error: &#39;nerr&#39; undeclared (first use in this function)</span><br style="color:rgb(51,51,255)">
<span style="color:rgb(51,51,255)">UTILS/lib/asc2sac.c:83: error: &#39;itmp&#39; undeclared (first use in this function)</span><br><br>Help...<br><br>Thanks,<br><br>Shahar<br>-- <br><div dir="ltr"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font style="font-family:tahoma,sans-serif" size="2">Shahar Barak<br>
=======================================<br></font></span></span></span><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font style="font-family:tahoma,sans-serif" size="2"><b>Crustal Geophysics Research Group</b></font></span></span></span><br>
<span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font style="font-family:tahoma,sans-serif" size="2"><b>Department of Geophysics, Stanford University</b><br>
397 Panama Mall, Stanford CA 94305-2215         <br></font></span></span></span><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font style="font-family:tahoma,sans-serif" size="2">Mitchell Building, room 463<br>
</font></span></span></span><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font style="font-family:tahoma,sans-serif" size="2">Office: (650) 725 8229<br>
Cell: (650) 276 6169<br>Home: (650) 497 3818<br><a href="mailto:shaharb@stanford.edu" target="_blank">shaharb@stanford.edu</a></font></span></span></span><font style="font-family:tahoma,sans-serif" size="2"><b style="color:rgb(0,153,0)"><br>
</b></font></div><br>
</div>