Topo to Raster by File (3D Analyst)

Summary

Interpolates a hydrologically correct raster surface from point, line, and polygon data using parameters specified in a file.

Learn more about how Topo to Raster works

Usage

Syntax

TopoToRasterByFile_3d (in_parameter_file, out_surface_raster, {out_stream_features}, {out_sink_features})
ParameterExplanationData Type
in_parameter_file

The input ASCII text file containing the inputs and parameters to use for the interpolation.

The file is typically created from a previous run of Topo to Raster with the optional output parameter file specified.

In order to test the outcome of changing the parameters, it is easier to make edits to this file and rerun the interpolation than to correctly issue the Topo to Raster tool each time.

File
out_surface_raster

The output interpolated surface raster.

Raster Layer
out_stream_features
(Optional)

Output feature class of stream polyline features.

Feature Class
out_sink_features
(Optional)

Output feature class of remaining sink point features.

Feature Class

Code Sample

TopoToRasterByFile example 1 (Python window)

This example creates a hydrologically correct TIFF surface raster from a parameter file defining the input point, line, and polygon data.

import arcpy
from arcpy import env  
env.workspace = "C:/data"
arcpy.TopoToRasterByFile_3d("topotorasbyfile.txt", "c:/output/ttrbf_out.tif",
                            "c:/ouput/outstreams.shp")
TopoToRasterByFile example 2 (stand-alone script)

This example creates a hydrologically correct Grid surface raster from a parameter file defining the input point, line, and polygon data.

# Name: TopoToRasterByFile_3d_Ex_02.py
# Description: Interpolates a hydrologically correct surface from 
#    point, line, and polygon data using parameters specified in a file.
# Requirements: 3D Analyst Extension

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inParameterFile = "topotorasterbyfile.txt"
outRaster =  "C:/output/ttrbyfout02"

# Check out the ArcGIS 3D Analyst extension license
arcpy.CheckOutExtension("3D")

# Execute TopoToRasterByFile
arcpy.TopoToRasterByFile_3d(inParameterFile, outRaster)

Environments

Related Topics

Licensing Information

ArcView: Requires 3D Analyst or Spatial Analyst
ArcEditor: Requires 3D Analyst or Spatial Analyst
ArcInfo: Requires 3D Analyst or Spatial Analyst

6/10/2013