# Examples from pyvista.examples.downloads.download_damavand_volcano
# ==================================================================

# 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

# 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 https://docs.pyvista.org/api/examples/dataset_gallery.html#damavand-volcano-dataset
#     See this dataset in the Dataset Gallery for more info.
#     Volume Rendering https://docs.pyvista.org/examples/02-plot/volume_rendering.html#volume-rendering-example
#     Example using this dataset.

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

