pyvista.examples.downloads.download_moonlanding_image#

download_moonlanding_image(load=True)[source]#

Download the Moon landing image.

This is a noisy image originally obtained from Scipy Lecture Notes and can be used to demonstrate a low pass filter.

See the scipy-lectures license for more details regarding this image’s use and distribution.

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

DataSet or filename depending on load.

Examples

>>> from pyvista import examples
>>> dataset = examples.download_moonlanding_image()
>>> dataset.plot(
...     cpos='xy',
...     cmap='gray',
...     background='w',
...     show_scalar_bar=False,
... )
../../../_images/pyvista-examples-downloads-download_moonlanding_image-1_00_00.png

See also

Moonlanding Image Dataset

See this dataset in the Dataset Gallery for more info.

Fast Fourier Transform

Full example using this dataset.