download_dikhololo_night

download_dikhololo_night#

download_dikhololo_night(load: bool = True) Texture | str[source]#

Download and read the dikhololo night HDR texture example.

Files hosted at https://polyhaven.com/

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

HDR Texture.

Examples#

Download Python source code | Download Jupyter notebook

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

Use resample() to down-sample 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_dikhololo_night-ae8df6fe0d0bbcce_00_00.png

See Also#

Dikhololo Night Dataset

See this dataset in the Dataset Gallery for more info.

Parched Canal 4k Dataset

Another HDR texture.