Read GSLib Point Set

Read GSLib point set file

# sphinx_gallery_thumbnail_number = 1
import pyvista
from pyvista import examples
from PVGeo.gslib import GSLibPointSetReader
points_url = 'http://www.trainingimages.org/uploads/3/4/7/0/34703305/b_100sampledatawl.sgems'
filename, _ = examples.downloads._retrieve_file(points_url, 'b_100sampledatawl.sgems')

point_set = GSLibPointSetReader().apply(filename)
print(point_set)

Out:

PolyData (0x7f23c3c55948)
  N Cells:      100
  N Points:     100
  X Bounds:     3.000e+00, 2.520e+02
  Y Bounds:     1.000e+00, 2.980e+02
  Z Bounds:     0.000e+00, 0.000e+00
  N Scalars:    1
point_set.plot()
../../_images/sphx_glr_read-point-set_001.png

Total running time of the script: ( 0 minutes 0.584 seconds)

Gallery generated by Sphinx-Gallery