Skip to main content
Ctrl+K
Logo image Logo image

Site Navigation

  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

Site Navigation

  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

Section Navigation

API Reference

  • Core API
    • DataObject
    • Data Sets
    • Point Sets
    • Gridded Data
      • pyvista.RectilinearGrid
      • pyvista.UniformGrid
        • add_field_array
        • add_field_data
        • cast_to_pointset
        • cast_to_rectilinear_grid
        • cast_to_structured_grid
        • cast_to_unstructured_grid
        • cell_bounds
        • cell_centers
        • cell_data_to_point_data
        • cell_n_points
        • cell_point_ids
        • cell_points
        • cell_type
        • clear_arrays
        • clear_cell_arrays
        • clear_cell_data
        • clear_data
        • clear_field_arrays
        • clear_field_data
        • clear_point_arrays
        • clear_point_data
        • clear_textures
        • clip
        • clip_box
        • clip_scalar
        • clip_surface
        • compute_cell_quality
        • compute_cell_sizes
        • compute_derivative
        • compute_implicit_distance
        • connectivity
        • contour
        • copy
        • copy_attributes
        • copy_from
        • copy_meta_from
        • copy_structure
        • ctp
        • decimate_boundary
        • deep_copy
        • delaunay_3d
        • elevation
        • explode
        • extract_all_edges
        • extract_cells
        • extract_feature_edges
        • extract_geometry
        • extract_largest
        • extract_points
        • extract_subset
        • extract_surface
        • fft
        • find_cells_along_line
        • find_cells_within_bounds
        • find_closest_cell
        • find_closest_point
        • find_containing_cell
        • flip_normal
        • flip_x
        • flip_y
        • flip_z
        • gaussian_smooth
        • get_array
        • get_array_association
        • get_data_range
        • glyph
        • head
        • high_pass
        • image_dilate_erode
        • image_threshold
        • integrate_data
        • interpolate
        • low_pass
        • median_smooth
        • merge
        • outline
        • outline_corners
        • overwrite
        • partition
        • plot
        • plot_over_circular_arc
        • plot_over_circular_arc_normal
        • plot_over_line
        • point_data_to_cell_data
        • point_is_inside_cell
        • probe
        • ptc
        • reflect
        • rename_array
        • rfft
        • rotate_vector
        • rotate_x
        • rotate_y
        • rotate_z
        • sample
        • sample_over_circular_arc
        • sample_over_circular_arc_normal
        • sample_over_line
        • sample_over_multiple_lines
        • save
        • scale
        • select_enclosed_points
        • separate_cells
        • set_active_scalars
        • set_active_tensors
        • set_active_vectors
        • shallow_copy
        • shrink
        • slice
        • slice_along_axis
        • slice_along_line
        • slice_implicit
        • slice_orthogonal
        • split_bodies
        • streamlines
        • streamlines_evenly_spaced_2D
        • streamlines_from_source
        • surface_indices
        • tessellate
        • texture_map_to_plane
        • texture_map_to_sphere
        • threshold
        • threshold_percent
        • to_tetrahedra
        • transform
        • translate
        • triangulate
        • warp_by_scalar
        • warp_by_vector
        • active_normals
        • active_scalars
        • active_scalars_info
        • active_scalars_name
        • active_t_coords
        • active_tensors
        • active_tensors_info
        • active_tensors_name
        • active_vectors
        • active_vectors_info
        • active_vectors_name
        • actual_memory_size
        • area
        • array_names
        • arrows
        • bounds
        • cell_arrays
        • cell_data
        • center
        • dimensions
        • extent
        • field_arrays
        • field_data
        • length
        • memory_address
        • n_arrays
        • n_cells
        • n_points
        • number_of_cells
        • number_of_points
        • origin
        • point_arrays
        • point_data
        • points
        • spacing
        • t_coords
        • textures
        • vectors
        • volume
        • x
        • y
        • z
    • Composite Datasets
    • Filters
    • Cameras
    • Lights
    • Helpers
    • Miscellaneous
  • Plotting
  • Utilities
  • Readers
  • Examples

add_field_array#

UniformGrid.add_field_array(scalars: ndarray, name: str, deep=True)#

Add field data.

Deprecated since version 0.32.0: Use DataObject.add_field_data() instead.

On this page
  • UniformGrid.add_field_array()
Edit this page
Show Source

© Copyright 2017-2022, The PyVista Developers.

Built with the PyData Sphinx Theme 0.12.0.

Created using Sphinx 5.3.0.