This is the python version of cmt3d package(credited to Qinya Liu and Carl Tape), which is used in the CMT source inversion.
git clone https://github.com/wjlei1990/pycmt3d cd pycmt3d pip install -v -e .
cd pycmt3d py.test