wolfhece.analyze_poly
Module Contents
- class wolfhece.analyze_poly.Array_analysis_onepolygon(wa: wolfhece.wolf_array.WolfArray, polygon: wolfhece.PyVertexvectors.vector)[source]
Class for values analysis of an array based on a polygon.
This class select values insides a polygon and plot statistics of the values.
The class is designed to be used with the WolfArray class and the vector class from the PyVertexvectors module.
Plots of the values distribution can be generated using seaborn or plotly.
- values(which: Literal['Mean', 'Std', 'Median', 'Sum', 'Volume', 'Values']) pandas.DataFrame | float [source]
Get the values as a pandas DataFrame
- Parameters:
which – Mean, Std, Median, Sum, Volume, Values
- select_cells(mode: Literal['polygon', 'buffer'] = 'polygon', **kwargs)[source]
Select the cells inside the polygon
- _select_cells_polygon(selection_poly: wolfhece.PyVertexvectors.vector)[source]
Select the cells inside the polygon
- _select_cells_buffer(buffer_size: float = 0.0)[source]
Select the cells inside the buffer of the polygon
- class wolfhece.analyze_poly.Array_analysis_polygons(wa: wolfhece.wolf_array.WolfArray, polygons: wolfhece.PyVertexvectors.zone)[source]
Class for values analysis of an array based on a polygon.
This class select values insides a polygon and plot statistics of the values.
The class is designed to be used with the WolfArray class and the vector class from the PyVertexvectors module.
Plots of the values distribution can be generated using seaborn or plotly.
- class wolfhece.analyze_poly.Slope_analysis(wa: wolfhece.wolf_array.WolfArray, trace: wolfhece.PyVertexvectors.vector)[source]
Class for slope analysis of in an array based on a trace vector.
This class allows to select cells inside a polygon or a buffer around a trace vector and compute the slope of the dike. The slope is computed as the difference in elevation between the trace and the cell divided by the distance to the trace.
The slope is computed for each cell inside the polygon or buffer and accessed in a Pandas Dataframe.
Plots of the slope distribution can be generated using seaborn or plotly.
The class is designed to be used with the WolfArray class and the vector class from the PyVertexvectors module.
- select_cells(mode: Literal['polygon', 'buffer'] = 'polygon', **kwargs)[source]
Select the cells inside the trace
- _select_cells_buffer(buffer_size: float = 0.0)[source]
Select the cells inside the buffer of the trace
- _select_cells_polygon(selection_poly: wolfhece.PyVertexvectors.vector)[source]
Select the cells inside the polygon