GENBROT

Once the *.seg files have had their headers updated with the geophone orientations, we can rotate the data so that the horizontal components face in a standard direction. In down-hole surveys, as the tool is dragged up the hole, it can slowly rotate. In some cases, the tool may become stuck, have to be unclamped and then reclamped, resulting in tool spin. This program is interactive and generates a bash script to apply a rotation of the data so that one component is parallel to the source azimuth (assuming an SH-wave source is used). An example log of a run follows:
Enter alpha prefix (char) of *.seg data to be rotated
  
EXAMPLE: if enter 1, then files 1001.seg to 1010.seg  
                     would be processed if sequence 
                     numbers 1 and 10 entered next 
  
  
L

 ...L 
 Enter first file number to process
1
 Enter last file number to process
146
 Output in file===>gobrot
The generated script file, gobrot, will then look like this:
  brot L001.seg 2 3 1
  brot L002.seg 2 3 1
  brot L003.seg 2 3 1
.
.
.
  brot L144.seg 2 3 1
  brot L145.seg 2 3 1
  brot L146.seg 2 3 1

Of course, one must then make the gobrot file executable:
chmod +x gobrot