Read ESRI Grid File

Read an ESRI ASCII grid file

import pyvista
from PVGeo.grids import EsriGridReader
from pyvista import examples

Download a sample ESRI grid file

filename, _ = examples.downloads._download_file('esri_grid.dem.zip')
dem = EsriGridReader().apply(filename)

Apply a filter to the DEM to have realistic topography

warped = dem.warp_by_scalar()
warped.plot(cmap='terrain', clim=[-100, 400])
../../_images/sphx_glr_read-esri_001.png

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

Gallery generated by Sphinx-Gallery