pyvista.examples.downloads.download_mount_damavand#

download_mount_damavand(load=True)[source]#

Download the Mount Damavand dataset.

Visualize 3D models of Damavand Volcano, Alborz, Iran. This is a 2D map with the altitude embedded as 'z' cell data within the pyvista.PolyData.

Originally posted at banesullivan/damavand-volcano.

Parameters:
loadbool, default: True

Load the dataset after downloading it when True. Set this to False and only the filename will be returned.

Returns:
pyvista.PolyData | str

DataSet or filename depending on load.

Examples

Download the Damavand dataset and plot it after warping it by its altitude.

>>> from pyvista import examples
>>> dataset = examples.download_mount_damavand()
>>> dataset = dataset.cell_data_to_point_data()
>>> dataset = dataset.warp_by_scalar('z', factor=2)
>>> dataset.plot(cmap='gist_earth', show_scalar_bar=False)
https://d33wubrfki0l68.cloudfront.net/5d12d170bce31ae206e837c6fe2830386e22ddb6/ba346/_images/pyvista-examples-downloads-download_mount_damavand-1_00_00.png