Iterate Rasters (ModelBuilder)

Summary

Iterates over rasters in a workspace.

Learn how Iterate Rasters works in ModelBuilder

Usage

  • This tool is only available from the ModelBuilder ribbon for use in models. The tool is not available from the Geoprocessing pane or from Python.

  • The tool has two outputs: Raster and Name, which could be used as inline variable %Name% in other tools.

Parameters

LabelExplanationData Type
Workspace

The workspace containing the rasters to iterate through.

Workspace; Raster Catalog Layer
Wildcard
(Optional)

A combination of * and characters that help to limit the results. The asterisk is the same as specifying ALL. If no wildcard is specified, all inputs will be returned. For example, it can be used to restrict Iteration over input names starting with a certain character or word (for example, A* or Ari* or Land* and so on).

String
Raster Format
(Optional)

The extension of the raster format, such as ASC, BIL, BIP, BMP, and so on, or type in another extension.

String
Recursive
(Optional)

Specifies whether subfolders of the main folder will be iterated through recursively.

  • Checked—Subfolders will be iterated.
  • Unchecked—Subfolders will not be iterated.
Boolean

Derived Output

LabelExplanationData Type
Raster

The full path to the raster.

Raster Dataset
Name

The name of the raster.

String

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics