The file SrfGen/createSourceRealisation.py in the Pre-processing repository contains the code for point source faults. This is the preferred location to add source generation uncertainty for other types of faults.
Type 1 behaviour
The point source generation algorithm creates two dictionaries of parameters, one of parameters that are to be used in srf generation, and one of parameters that are not used.
Then for each realisation each parameter is perturbed as defined in the uncertainties file.
These parameters are then all passed to the createSRF function.
Type 2 proposed behaviour
The type 2 source generation should be significantly similar to type 1.
The list of parameters to be perturbed will need to be reviewed.
If flen is not given, then flen, dlen, fwid, dwid, dtop, shypo, dhypo are overridden using focal_mechanism_2_finite_fault which uses a given magnitude scaling relation to determine them
Parameters to be perturbed
Type 1 for reference
Parameter | type | Type 1 | Type 2 |
---|---|---|---|
depth | float | perturbated | |
mw (magnitude) | float | perturbated | perturbed |
mom | float | perturbated | Not needed? |
strike | float | perturbated | perturbated |
rake | float | perturbated | perturbated |
dip | float | perturbated | perturbated |
vs | float | perturbated | |
rho | float | perturbated | |
rise_time | float | perturbated | |
seed | int | Unknown | |
rvfrac | float | Unknown | |
slip coverage | float | Unknown | |
flen | float | Must be None to trigger type 2 logic | |
dlen | float | Overridden | |
fwid | float | Overridden | |
dwid | float | Overridden | |
dtop | float | Overridden | |
shypo | float | Overridden | |
dhypo | float | Overridden | |
mwsr (magnitude scaling relation) | str | Not used here | |
genslip_version | str | Passed in as argument | |
tect_type | str | Not needed? | |
srf_type | int | Inferred from flen == None to be type 2 | |