pyvista.examples.planets.download_mars_surface

pyvista.examples.planets.download_mars_surface#

download_mars_surface(texture=False, load=True)[source]#

Download the surface of the planet Mars.

Textures obtained from Solar Textures.

Parameters:
texturebool, default: False

Set to True when loading the surface as a texture.

loadbool, default: True

Load the dataset. When False, return the path to the file.

Returns:
pyvista.DataSet, pyvista.Texture, or str

Texture, Dataset, or path to the file depending on the load and texture parameters.

Examples

>>> from pyvista import examples
>>> texture = examples.planets.download_mars_surface(texture=True)
>>> texture.plot(zoom='tight', show_axes=False)
../../../_images/pyvista-examples-planets-download_mars_surface-1_00_00.png