pyacs.lib.faultslip.v_to_rake.v_to_rake
- pyacs.lib.faultslip.v_to_rake.v_to_rake(ve, vn, strike, dip, style='inverse')[source]
Compute expected rake from relative horizontal velocity and fault geometry.
- Parameters:
ve (float or numpy.ndarray) – East and north components of relative motion (any unit).
vn (float or numpy.ndarray) – East and north components of relative motion (any unit).
strike (float or numpy.ndarray) – Fault strike and dip in decimal degrees.
dip (float or numpy.ndarray) – Fault strike and dip in decimal degrees.
style (str, optional) – One of ‘inverse’, ‘normal’, ‘leftlateral’, ‘rightlateral’ to resolve ambiguity (hanging wall vs footwall). If None, first solution is returned.
- Returns:
Rake in decimal degrees.
- Return type:
float or numpy.ndarray
Notes
ve, vn alone are ambiguous (hanging wall vs footwall); style disambiguates.