Read UBC Topography File

Read a UBC topography file

# sphinx_gallery_thumbnail_number = 1
import pooch

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"
file_path = pooch.retrieve(url=url, known_hash=None)
topo = PVGeo.ubc.TopoReader().apply(file_path)
topo
HeaderData Arrays
PolyDataInformation
N Cells381924
N Points381924
N Strips0
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", notebook=0)
read topo

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

Gallery generated by Sphinx-Gallery