Skip to main content

Iterate Rasters (Model Tools)

Summary

Iterates over rasters in a workspace.

Learn how Iterate Rasters works in ModelBuilder

Usage

  • This tool is only available from ModelBuilder 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

Label Explanation Data 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. You can use this parameter 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

Label Explanation Data 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