Read Surfer Grid File

Read an Surfer ASCII grid file

import pyvista
from PVGeo.grids import SurferGridReader
from pyvista import examples

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.)

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

Gallery generated by Sphinx-Gallery