map2loop.fault_orientation.FaultOrientationNearest#
- class map2loop.fault_orientation.FaultOrientationNearest#
Bases:
FaultOrientation
FaultOrientation class which estimates fault orientation based on nearest orientation
Initialiser for nearest version of the fault orientation assigner
- __init__()#
Initialiser for nearest version of the fault orientation assigner
Methods
__init__
()Initialiser for nearest version of the fault orientation assigner
calculate
(fault_trace, fault_orientations, ...)Assigns the nearest fault orientation to a fault
type
()Getter for subclass type label
- calculate(fault_trace: GeoDataFrame, fault_orientations: DataFrame, map_data: MapData) DataFrame #
Assigns the nearest fault orientation to a fault
- Parameters:
fault_trace (geopandas.GeoDataFrame) – the data frame of the fault traces
fault_orientation (pandas.DataFrame) – data frame with fault orientations to assign to faults
map_data (map2loop.MapData) – a catchall so that access to all map data is available
- Returns:
pandas.DataFrame – fault orientations assigned to a fault label
- type()#
Getter for subclass type label
- Returns:
str – Name of subclass