fault_mesh.faults.leapfrog
Classes that implement the Leapfrog fault model. Inherit from GenericFault and GenericMultiFault.
Classes
Class to hold data for multiple faults, read in from shapefile (and hopefully also tsurfaces) |
|
Represents either a whole fault (for simple faults) or one segment. Behaviours is slightly |
Module Contents
- class fault_mesh.faults.leapfrog.LeapfrogMultiFault(fault_geodataframe, sort_sr=False, segment_distance_tolerance=100.0, smoothing_n=None, remove_colons=True, dip_choice='pref', trimming_gradient=1.0, epsg=None, dip_multiplier=1.0, strike_multiplier=0.5, check_optional_fields=True)
Bases:
fault_mesh.faults.generic.GenericMultiFault
Class to hold data for multiple faults, read in from shapefile (and hopefully also tsurfaces)
- Parameters:
fault_geodataframe (geopandas.GeoDataFrame)
sort_sr (bool)
segment_distance_tolerance (float)
smoothing_n (int)
remove_colons (bool)
dip_choice (str)
trimming_gradient (float)
epsg (int)
dip_multiplier (float)
strike_multiplier (float)
check_optional_fields (bool)
- find_connections(verbose=True)
Find all connections between faults in the fault list using networkx :param verbose: print out information about individual connections :return:
- Parameters:
verbose (bool)
- class fault_mesh.faults.leapfrog.LeapfrogFault(parent_multifault=None, smoothing=5, trimming_gradient=1.0, segment_distance_tolerance=100.0, parent_connected=None)
Bases:
fault_mesh.faults.generic.GenericFault
Represents either a whole fault (for simple faults) or one segment. Behaviours is slightly
- Parameters:
parent_multifault (LeapfrogMultiFault)
smoothing (int)
trimming_gradient (float)
segment_distance_tolerance (float)
- property is_segment
Records whether instance is a segment of a larger multi-segment fault like the Alpine Fault. :return:
- property smoothing
n value to use in Chaikin’s corner-cutting algorithm. :return:
- property trimming_gradient
Factor that controls how much the ends of segment contours of a multi-segment fault are shortened to allow :return:
- property parent
Return LeapfrogMultiFault instance that this fault is part of. :return:
- depth_contour(depth, smoothing=True, km=False)
Generate contour of fault surface at depth below surface :param depth: In metres, upwards is positive :param smoothing: N for use with Chaikin’s corner cutting :param km: If True, divide depth by 1000 :return: LineString or MultiLineString representing contour
- Parameters:
depth (float)
smoothing (bool)
- extend_footprint(end_i, other_end, other_segment, deepest_contour_depth=30000.0, search_line_length=150000.0, buffer_size=5000.0, fall_back_distance=40.3)
- Parameters:
end_i (shapely.geometry.Point) – End to extend
other_end (shapely.geometry.Point) – Other end of segment
other_segment (LeapfrogFault) – Other
deepest_contour_depth (float)
search_line_length (float)
buffer_size (float)
fall_back_distance (float)
- Returns: