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 and not in Python scripting.

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

Syntax

IterateRasters(in_workspace, {wildcard}, {raster_format}, {recursive})
ParameterExplanationData Type
in_workspace

Workspace containing the rasters to iterate through.

Workspace
wildcard
(Optional)

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 (e.g., 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

NameExplanationData 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