Skip to main content
Ctrl+K
PyVista 0.44.dev0 documentation - Home PyVista 0.44.dev0 documentation - Home
  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras
  • GitHub
  • Slack Community
  • Support
  • Contributing
  • The Paper
  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras
  • GitHub
  • Slack Community
  • Support
  • Contributing
  • The Paper

Section Navigation

API Reference

  • Core API
  • Plotting
  • Utilities
    • Geometry
    • Parametric Objects
    • General Utilities
      • pyvista.core.utilities.VtkErrorCatcher
      • pyvista.core.utilities.axis_rotation
      • pyvista.core.utilities.is_inside_bounds
      • pyvista.core.utilities.set_error_output_file
      • pyvista.array_from_vtkmatrix
      • pyvista.cubemap
      • pyvista.cubemap_from_filenames
      • pyvista.image_to_texture
      • pyvista.is_pyvista_dataset
      • pyvista.numpy_to_texture
      • pyvista.pyvista_ndarray
      • pyvista.vtkmatrix_from_array
      • pyvista.wrap
      • pyvista.cartesian_to_spherical
      • pyvista.create_grid
      • pyvista.grid_from_sph_coords
      • pyvista.merge
      • pyvista.perlin_noise
      • pyvista.sample_function
      • pyvista.spherical_to_cartesian
      • pyvista.transform_vectors_sph_to_cart
      • pyvista.voxelize
      • pyvista.voxelize_volume
      • pyvista.read
      • pyvista.read_exodus
      • pyvista.read_texture
      • pyvista.save_meshio
      • pyvista.CellType
      • pyvista.fit_plane_to_points
      • pyvista.lines_from_points
      • pyvista.vector_poly_data
      • pyvista.vtk_points
      • pyvista.cell_array
      • pyvista.convert_array
      • pyvista.field_array
      • pyvista.get_array
      • pyvista.point_array
      • pyvista.compare_images
      • pyvista.Color
      • pyvista.ColorLike
      • pyvista.start_xvfb
      • pyvista.Report
  • Readers
  • Examples
  • API Reference
  • General Utilities
  • pyvista.grid...

pyvista.grid_from_sph_coords#

grid_from_sph_coords(theta, phi, r)[source]#

Create a structured grid from arrays of spherical coordinates.

Parameters:
thetaarray_like[float]

Azimuthal angle in degrees [0, 360].

phiarray_like[float]

Polar (zenith) angle in degrees [0, 180].

rarray_like[float]

Distance (radius) from the point of origin.

Returns:
pyvista.StructuredGrid

Structured grid.

On this page
  • grid_from_sph_coords()
Edit on GitHub

© Copyright 2017-2024, The PyVista Developers.

Built with the PyData Sphinx Theme 0.15.2.