<div>Dear All, </div>
<div> </div>
<div>I am writing an instrument response correction script. I set stations' name and event seperately. It works for "read" in SAC, but not for trans polezero. Any suggestion on this one? Thank your for your time and effort.</div>
<div> </div>
<div>--</div>
<div> </div>
<div>set STA = "GAC"<br>set EVENT = "200411150906"<br>set YYYY = "2004"</div>
<div>set DISN = `cat stadis | grep $STA | awk '{ print $4 }'`<br>set STANUM = `cat stadis | grep $STA | awk '{ print $2}'`<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 << !</div>
<div> </div>
<div>### read works####<br>r D$DISN.$STANUM.$STA.Z<br>rmean<br>taper<br>p1<br></div>
<div>########## This doesn'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> </div>
<div>w over<br>!<br>endif</div>
<div><br>-----</div>
<div> </div>
<div><br>Chingwen Chen <br><br></div>