pyvista.examples.planets.load_earth

目次

pyvista.examples.planets.load_earth#

load_earth(radius=1.0, lat_resolution=50, lon_resolution=100)[ソース]#

惑星地球をテクスチャ付きの球体として読み込みます.

パラメータ:
radiusfloat, default: 1.0

球の半径.

lat_resolutionint, default: 50

緯度方向の点の数を設定します.

lon_resolutionint, default: 100

経度方向の点の数を設定します.

戻り値:
pyvista.PolyData

地球のデータセット.

>>> import pyvista as pv
>>> from pyvista import examples
>>> mesh = examples.planets.load_earth()
>>> texture = examples.load_globe_texture()
>>> image_path = examples.planets.download_stars_sky_background(load=False)
>>> mesh.plot(texture=texture, background=image_path)
../../../_images/pyvista-examples-planets-load_earth-1_00_00.png

参考

load_globe_texture()

Download the surface of the Earth.

3D地球と天体

Example plot of the solar system.