Moment Tensor Workshop - 7th Gulf Seismic Forum

Course

Install Computer Programs in Seismology

  • CPSInstall.pdf
  • Corrections

    When after unpacking the MOMENT_TENSOR.tar file,

         cd MOMENT_TENSOR
         cd MECH.NA/0XXXREG/GRD.REG
    
    Edit the file DOPLTSAC and change the two lines that read
         YT=`echo $Y0 | gawk '{print $1 - 0.5 }'`
          ....
         Y0=`echo $Y0 | gawk '{print $1 - 1.0 }'`
    
    to
         YT=`echo $Y0 | awk '{print $1 - 0.5 }'`
          ....
         Y0=`echo $Y0 | awk '{print $1 - 1.0 }'`
    

    Now starting at the top,

         cd MOMENT_TENSOR
         cd MECH.TR/0XXXREG/GRD.REG 
    Edit the file DOPLTSAC and change the two lines that read
         YT=`echo $Y0 | gawk '{print $1 - 0.5 }'`
          ....
         Y0=`echo $Y0 | gawk '{print $1 - 1.0 }'`
    
    to
         YT=`echo $Y0 | awk '{print $1 - 0.5 }'`
          ....
         Y0=`echo $Y0 | awk '{print $1 - 1.0 }'`
    
    The problem was that Ubuntu 11.10 no longer has gawk in the standard distribution. It uses the command 'awk' with the enhanced capabilities. One can obtain gawk by the command
         sudo apt-get install gawk
    
    or
         sudo update-alternatives -s awk /usr/bin/gawk
    

    The corrected MOMENT_TENSOR.tar (185 Mb) is (Download)