Read UBC Topography File

Read a UBC topography file

from pyvista import examples

# sphinx_gallery_thumbnail_number = 1
import PVGeo

Download sample data files and keep track of names:

url = 'https://github.com/OpenGeoVis/PVGeo/raw/main/tests/data/Craig-Chile/LdM_topo.topo'
topo_file, _ = examples.downloads._retrieve_file(url, 'LdM_topo.topo')
topo = PVGeo.ubc.TopoReader().apply(topo_file)
topo
HeaderData Arrays
PolyDataInformation
N Cells381924
N Points381924
X Bounds3.550e+05, 3.720e+05
Y Bounds5.999e+06, 6.016e+06
Z Bounds2.050e+03, 3.104e+03
N Arrays1
NameFieldTypeN CompMinMax
ElevationPointsfloat6412.050e+033.104e+03


topo.plot(cmap='terrain')
read topo

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

Gallery generated by Sphinx-Gallery