gemgis.visualization.create_structured_grid_from_zmap
gemgis.visualization.create_structured_grid_from_zmap#
- gemgis.visualization.create_structured_grid_from_zmap(data: dict) pyvista.core.pointset.StructuredGrid #
Converting loaded ZMAP object to PyVista StructuredGrid
- Parameters
data (dict) – Dict containing the extracted ZAMP data using read_zmap(…) of the raster module
- Returns
grid – PyVista StructuredGrid created from zmap data
- Return type
pv.core.pointset.StructuredGrid
New in version 1.0.x.
Example
>>> # Loading Libraries and data >>> import gemgis as gg >>> data = gg.raster.read_zmap('raster.dat')
>>> # Creating StructuredGrid from data >>> grid = gg.visualization.create_structured_grid_from_zmap(data=data) >>> grid Header Data Arrays StructuredGrid Information N Cells 2880012 N Points 2883540 X Bounds -4.225e+04, 2.788e+05 Y Bounds 3.060e+05, 8.668e+05 Z Bounds -1.000e+05, 2.880e+02 Dimensions 2244, 1285, 1 N Arrays 1 Name Field Type N Comp Min Max Depth [m] Points float64 1 -1.132e+04 2.887e+02
See also
create_polydata_from_msh
Creating PolyData dataset from Leapfrog mesh file
create_polydata_from_ts
Creating PolyData dataset from GoCAD Tsurface file
create_polydata_from_dxf
Creating PolyData dataset from DXF object
create_structured_grid_from_asc
Creating StructuredGrid vom ESRI ASC Grid
create_delaunay_mesh_from_gdf
Create Mesh from GeoDataFrame containing contour lines