Add the following to your ~/.bashrc:
alias matlab=/Applications/MATLAB_R2019a.app/bin/matlab
export MATLAB_USE_USERPATH=1
##--------- GEODMOD ------------------##
export GEODMOD_HOME=~/Documents/test/test1/geodmod
export GEODMOD_TESTDATA=~/Documents/testdata/geodmod
export GEODMOD_TESTBENCH=~/Downloads/TESTBENCH
git clone https://github.com/geodesymiami/GeodMod.git $GEODMOD_HOME
Add the following to your startup.m file in USER/matlab for Matlab to initiate the configuration:
%% Setting for GeodMod
disp('Setting paths for geodmod...')
run( [ getenv('GEODMOD_HOME') filesep 'addpath_geodmod'] )
Download test data
mkdir -p $GEODMOD_TESTDATA
cd $GEODMOD_TESTDATA
wget https://zenodo.org/record/3348961/files/geodmod_testdata.xz
tar -xvJf geodmod_testdata.xz
Start matlab program from terminal to initiate the environment variables defined above.
matlab
>>geodmod Darwin.min
>>geodmod Wells.min
You can disable most of the plotting (quick runs) using:
inverseopt.QuickStop = true
plotthemodelopt.DoIt = off
plotsurface3dopt.DoIt = off
inverseopt.distribopt.DoIt = off
Geodmod uses the same dislocation code as GBIS. See the GBIS manual for definition of the parameters.
In contrast to GBIS geodmod always requires the strike-slip, downdip and opening component. GBIS requires for a fault onlt the first two and for a dike the last (the unused components are set to zero internally).
The relationship between dip and strike is the same with that of GBIS(right hand rule); But for the middle point (Xiaoran): In Geodmod, the middle point always loated at the lower edge; In GBIS, the location of middle point has relationship with the dip(negtive dip means middle point locates at the upper edge while positive dip means middle point locates at the lower edge).
http://www.bosai.go.jp/study/application/dc3d/DC3Dhtml_E.html
--- test area for githubb -----
Second addition to upstream before everything else.
Addition to upstream that needs to bbe removed
This is from fork and should go on top of master A second addition to fork Addition to for on github
Add another line on Mac
Again one more line from Mac
Put a line in-between on Mac
final line for rebasing test on fork/mac
adding another line to fork Again a line to checkout sqashing