pyvista.examples.downloads.download_parched_canal_4k

pyvista.examples.downloads.download_parched_canal_4k#

download_parched_canal_4k(load=True)[source]#

Download parched canal 4k dataset.

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.Texture | str

DataSet or filename depending on load.

Examples

>>> from pyvista import examples
>>> texture = examples.download_parched_canal_4k()
>>> texture.dimensions
(4096, 2048)

Use resample() to downsample the texture’s underlying image before plotting.

>>> _ = texture.to_image().resample(0.25, inplace=True)
>>> texture.dimensions
(1024, 512)
>>> texture.plot(cpos='xy')
../../../_images/pyvista-examples-downloads-download_parched_canal_4k-1_00_00.png

See also

Parched Canal 4k Dataset

See this dataset in the Dataset Gallery for more info.