Read Surfer Grid File

Read an Surfer ASCII grid file

from pyvista import examples

from PVGeo.grids import SurferGridReader

Download a sample Surfer grid file

fname = 'surfer-grid.grd'
url = '{}'.format(fname)
filename, _ = examples.downloads._retrieve_file(url, fname)
dem = SurferGridReader().apply(filename)

Apply a filter to the DEM to have realistic topography

warped = dem.warp_by_scalar(scale_factor=300.0)
read surfer

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

Gallery generated by Sphinx-Gallery