pyacs.lib.faultslip.fault_to_corners
- pyacs.lib.faultslip.fault_to_corners.fault_to_corners(lon, lat, depth, length, width, strike, dip)[source]
Compute 4 fault corner coordinates from origin, dimensions and orientation.
- Parameters:
lon (float) – Origin longitude for fault in decimal degrees.
lat (float) – Origin latitude for fault in decimal degrees.
depth (float) – Depth in km (negative downward; positive values are converted to negative).
length (float) – Fault length in km.
width (float) – Fault width in km.
strike (float) – Fault strike in degrees.
dip (float) – Fault dip in degrees.
- Returns:
Array of shape (4, 3) with [lon, lat, depth] for the 4 fault corners.
- Return type:
numpy.ndarray
Notes
Uses a flat Earth approximation; depth is negative.