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])
read esri

Out:

[(380396.17906938447, 3746898.1790693845, 10488.30242143526),
 (369910.5, 3736412.5, 2.62335205078125),
 (0.0, 0.0, 1.0)]

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

Gallery generated by Sphinx-Gallery