Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > 3D Analyst toolbox > Raster Interpolation toolset > Tools

Natural Neighbor (3D Analyst)

Release 9.2
Last modified October 5, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Interpolates a surface from points using a natural neighbor technique.

Learn more about Natural Neighbor interpolation


Usage tips

Command line syntax
An overview of the Command Line window
NaturalNeighbor_3d <in_point_features> <z_field> <out_raster> {cell_size}

Parameter Explanation Data Type
<in_point_features>

Input point features.

Composite Geodataset
<z_field>

Field that holds a height or magnitude value for each point.

This can be a numeric field or the Shape field if the in_point_features contains z-values.

Field
<out_raster>

Output raster dataset.

Raster Dataset
{cell_size}

The cell size at which the output raster will be created.

This will be the value in the Environment if it is explicitly set. Otherwise, it is the shorter of the width or the height of the extent of in_point_features, in the input spatial reference, divided by 250.

Analysis cell size
Data types for geoprocessing tool parameters


Command line example

NaturalNeighbor_3d  C:/data/pts.shp spot C:/data/final_1 1

Scripting syntax
About getting started with writing geoprocessing scripts
NaturalNeighbor_3d (in_point_features, z_field, out_raster, cell_size)

Parameter Explanation Data Type
in_point_features (Required)

Input point features.

Composite Geodataset
z_field (Required)

Field that holds a height or magnitude value for each point.

This can be a numeric field or the Shape field if the in_point_features contains z-values.

Field
out_raster (Required)

Output raster dataset.

Raster Dataset
cell_size (Optional)

The cell size at which the output raster will be created.

This will be the value in the Environment if it is explicitly set. Otherwise, it is the shorter of the width or the height of the extent of in_point_features, in the input spatial reference, divided by 250.

Analysis cell size

Data types for geoprocessing tool parameters


Script example

# NaturalNeighbor_sample.py
# Description:
#   Interpolate a series of point features onto a rectangular 
#   raster using Natural Neighbor interpolation.
# Requirements: None
# Author: ESRI
# Date: Sept 6, 2005
# Import system modules
import arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

try:
    # Set the output workspace name
    gp.Workspace = "C:/data"

    # Set the input feature dataset
    inputFeatureDataset = "C:/data/pts.shp"

    # Set the output raster name
    outputRaster = "final_1" 

    # Set the output extent
    gp.Extent = "0 0 6 6"

    # Set the cellsize
    cellSize = 1

    # Set the attribute field
    attributeName = "spot"

    # Check out ArcGIS 3D Analyst extension license
    gp.CheckOutExtension("3d")

    # Process: Natural Neighbor...
    gp.NaturalNeighbor_3d(inputFeatureDataset, attributeName, outputRaster, cellSize)

 except:
    # If an error occurred while running a tool, then print the messages
    print gp.GetMessages()

Map Algebra syntax
Not available in 3D Analyst.

ArcObjects syntax
Not available

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.