download_damavand_volcano#
- download_damavand_volcano(load: bool = True) ImageData | str[source]#
Download damavand volcano model.
- Parameters:
- Returns:
- output
pyvista.ImageData|str DataSet or filename depending on
load.
- output
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 downsample it before plotting.
>>> dataset = dataset.resample(0.5)
>>> dataset.dimensions
(140, 116, 85)
Plot it.
>>> cpos = pv.CameraPosition(
... position=(4.66316700e04, 4.32796241e06, -3.82467050e05),
... focal_point=(5.52532740e05, 3.98017300e06, -2.47450000e04),
... viewup=(4.10000000e-01, -2.90000000e-01, -8.60000000e-01),
... )
>>> dataset.plot(cpos=cpos, cmap='reds', show_scalar_bar=False, volume=True)
See also
- Damavand Volcano Dataset
See this dataset in the Dataset Gallery for more info.
- Volume Rendering
Example using this dataset.