gemgis.visualization.plane_through_hypocenters
gemgis.visualization.plane_through_hypocenters#
- gemgis.visualization.plane_through_hypocenters(spheres: pyvista.core.composite.MultiBlock) pyvista.core.pointset.PolyData #
Fitting a plane through the hypocenters of earthquakes using Eigenvector analysis
- Parameters
spheres (pv.core.composite.MultiBlock) – PyVista MultiBlock object containing the hypocenters stored as spheres
- Returns
plane – Plane fitting through the hypocenters using Eigenvector analysis
- Return type
pv.core.pointset.PolyData
New in version 1.0.x.
Example
>>> # Loading Libraries and File >>> import gemgis as gg >>> import pyvista as pv >>> spheres = pv.read(filename='spheres.vtk')
>>> # Fitting plane through spheres >>> plane = gg.visualization.plane_through_hypocenters(spheres=spheres) >>> plane Header PolyData Information N Cells 100 N Points 121 X Bounds 3.230e+07, 3.231e+07 Y Bounds 5.618e+06, 5.620e+06 Z Bounds -1.113e+04, -8.471e+03 N Arrays 2 Data Arrays Name Field Type N Comp Min Max Normals Points float32 3 0.000e+00 1.000e+00 TextureCoordinates Points float32 2 0.000e+00 1.000e+00