-
Notifications
You must be signed in to change notification settings - Fork 63
A simple forward computation
-
Install Mudpy. If you've already done this then run
git pull
from your terminal to make sure you have the up to date latest version with the right example files. - Configure MudPy for multiprocessor use, this can sometimes be painful and is NOT a necessary step, but try, it'll make your computations much much faster. Even your crappy laptop has at least 4 cores!
Look under $MUDPY/examples/forward_modeling/
you should see a listing of 6 files like so:
Ok, open the file nepal.fwd.py
this is the main parameter file that you will use to command the program. This file can live anywhere in your system it doesn't really matter where.
In order to make things run smoothly and keep everything organized MudPy uses a very specific fodler structure. THis will be created for you. In the parameter file nepal.fwd.py
edit the following lines:
home='/Users/dmelgar/Slip_inv/'
project_name='Nepal_forward_test'
home
must already exist and is where all your MudPy projects will be stored. project_name
is a name to give this particular project. This will be used to create the fodler structure. Note this is completely independent of where you are storing your .fwd.py
parameter files.
Now set the action flags as follows:
init=1
make_green=0
make_synthetics=0
solve=0
You are now ready to run the parameter file to create the folder structure. At your terminal run the python parameter file:
$> python $PATH_TO_FILE/nepal.fwd.py
$PATH_TO_FILE
is the path where you are storing the parameter file. After s execution you should now see a new folder structure under home/project_name
like so:
For a forward run you will need 5 auxiliary files defining the Earth structure model, the fault geometry, the kinematic rupture, and the station locations and kinds of data you want to synthesize. Note that these files need to be in very specific locations where MudPy will look for them.
- Earth structure: Copy the file
avouac.mod
from the examples folder tohome/project_name/structure/
the file should look like so: