download_damavand_volcano

download_damavand_volcano#

download_damavand_volcano(load: bool = True) ImageData | str[source]#

Download Damavand volcano model.

Parameters:
loadbool, default: True

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

Returns:
outputpyvista.ImageData | str

DataSet or filename depending on load.

Examples#

Download Python source code | Download Jupyter notebook

Load the dataset.

>>> from pyvista import examples
>>> import pyvista as pv
>>> dataset = examples.download_damavand_volcano()

Use resample() to down-sample it before plotting.

>>> dataset = dataset.resample(0.5)
>>> dataset.dimensions
(140, 116, 85)

Plot it.

>>> cpos = pv.CameraPosition(
...     position=(46630.0, 4328000.0, -382500.0),
...     focal_point=(552500.0, 3980000.0, -24740.0),
...     viewup=(0.41, -0.29, -0.86),
... )
>>> dataset.plot(cpos=cpos, cmap='reds', show_scalar_bar=False, volume=True)
../../../_images/pyvista-examples-downloads-download_damavand_volcano-7733cad1a57b434a_00_00.png

See Also#

Damavand Volcano Dataset

See this dataset in the Dataset Gallery for more info.