<div>Dear All, </div>
<div>&nbsp;</div>
<div>I am writing an instrument response correction script. I set stations&#39; name and event seperately. It works&nbsp;for &quot;read&quot; in&nbsp;SAC, but not for trans polezero.&nbsp;&nbsp;Any suggestion on this one? &nbsp;Thank your for your time and effort.</div>

<div>&nbsp;</div>
<div>--</div>
<div>&nbsp;</div>
<div>set STA = &quot;GAC&quot;<br>set EVENT = &quot;200411150906&quot;<br>set YYYY =&nbsp; &quot;2004&quot;</div>
<div>set DISN = `cat stadis | grep $STA | awk &#39;{ print $4 }&#39;`<br>set STANUM = `cat stadis | grep $STA | awk &#39;{ print $2}&#39;`<br>/bin/cp 20*.$STA..BHZ.D.SAC D$DISN.$STANUM.$STA.Z</div>
<div>if (-e D$DISN.$STANUM.$STA.Z ) then<br>sac2000 &lt;&lt; !</div>
<div>&nbsp;</div>
<div>###&nbsp;read &nbsp;works####<br>r&nbsp; D$DISN.$STANUM.$STA.Z<br>rmean<br>taper<br>p1<br></div>
<div>########## This doesn&#39;t work due to $YYYY and $EVENT</div>
<div>trans from polezero s /data/cchen/Ontario_CN/CNSN_sac/$YYYY\_sac/$EVENT/Resp_files/$STA\_BHZ to polezero s /data/cchen/Ontario_CN/CNSN_sac/generic_resp_files/SAC_PZs_resp03.HHZ <br>##########</div>
<div>&nbsp;</div>
<div>w over<br>!<br>endif</div>
<div><br>-----</div>
<div>&nbsp;</div>
<div><br>Chingwen Chen <br><br></div>