The following bash script is used in down-hole surveys to form the various resorted data sets. This script is designed for a vertical impact source with a load-cell signal on channel 7.
#!/bin/sh # $Id: Merge2,v 1.1.1.1 2017/04/13 21:40:01 pm Exp $ #set -x # USE THIS FOR 7 TRACE DATA SETS: # Merge2: basic script to merge traces into P-wave gather and parse off load_cell trace # assumes channels in following order 1,2,3 down-hole, 4,5,6 reference, 7=load_cell # !!!Does NOT do enhanced processing. Simple trace extraction with bmrg program.!!! # # This combines all the shot gathers into receiver gathers for the different # geophone components in a down-hole survey. # # NOTE:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # This script was designed for a vertical impact source. There is no S-wave enhancement # since the source is excited with only one polarization. # # Copyright (c) 2017 Paul Michaels # <pm@cgiss.boisestate.edu> # This program is free software; you can # redistribute it and/or modify it under the terms # of the GNU General Public License as published # by the Free Software Foundation; either version # 2 of the License, or (at your option) any later # version. This program is distributed in the # hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied # warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. See the GNU General Public # License for more details. # You should have received a copy of the GNU # General Public License along with this program; # if not, write to the Free Software Foundation, # Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #set -x #...define parameters YOU MUST DEFINE THESE FOR EACH NEW SURVEY # SINCE IT IS LIKELY THAT THE NUMBER OF RECORDS # WILL VARY WITH EACH SURVEY !!!! #...define parameters odmin=01 odmax=83 PRFX=brot10 #pull off load_cell channels bmrg $PRFX $odmin $odmax 1 7 7 1>/dev/null mv bmrg.seg ldcl.seg echo "created ldcl.seg (load cell traces)" #pull off vertical reference phone bmrg $PRFX $odmin $odmax 1 4 4 1>/dev/null mv bmrg.seg refv.seg echo "created refv.seg (vertical reference traces) " #pull off radial reference phone bmrg $PRFX $odmin $odmax 1 5 5 1>/dev/null mv bmrg.seg refr.seg echo "created refr.seg (radial reference traces) " #pull off transverse reference phone bmrg $PRFX $odmin $odmax 1 6 6 1>/dev/null mv bmrg.seg reft.seg echo "created reft.seg (transverse reference traces)" #pull off vertical down-hole phone bmrg $PRFX $odmin $odmax 1 1 1 1>/dev/null mv bmrg.seg swcv.seg echo "created swcv.seg (vertical swc phone traces) " #pull off radial down-hole phone bmrg $PRFX $odmin $odmax 1 2 2 1>/dev/null mv bmrg.seg swcr.seg echo "created swcr.seg (radial swc phone traces) " #pull off transverse down-hole phone bmrg $PRFX $odmin $odmax 1 3 3 1>/dev/null mv bmrg.seg swct.seg echo "created swct.seg (transverse swc phone traces)" echo done