Iterate Rasters (ModelBuilder)

Summary

Iterates over rasters in a workspace.

Learn how Iterate Rasters works in ModelBuilder

Usage

  • This tool is intended for use in ModelBuilder, not in Python scripting.

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

Parameters

LabelExplanationData Type
Workspace

Workspace containing the rasters to iterate through.

Workspace
Wildcard
(Optional)

A combination of * and characters that help to limit the results. The asterisk is the same as saying 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)

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

String
Recursive
(Optional)

Determines if subfolders of the main folder will be iterated through recursively.

  • Checked—Will iterate through all subfolders.
  • Unchecked—Will not iterate through all subfolders.
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