Skip to main content

Raster Compare (Data Management Tools)

Summary

Compares the properties of two raster datasets or two mosaic datasets.

Usage

  • The tool returns messages showing the comparison result.

  • The parameter and attribute tolerances allow the comparisons to have a specified amount of deviation.

  • When using this tool in Python, get the status of the comparison from the returned Result object using the index position of 1.(result[1]). The value will be 'true' when no differences are found and 'false' when differences are found.

    Learn more about using tools in Python

Parameters

Label Explanation Data type

Input Base Raster

The raster or mosaic dataset that will be compared with the Input Test Raster parameter value. This parameter value is data that you have declared valid. This base data has the correct content and information.

Raster Layer; Mosaic Layer

Input Test Raster

The raster or mosaic dataset that will be compared with the Input Base Raster parameter value. This parameter value is data that you have made changes to by editing or compiling new information.

Raster Layer; Mosaic Layer

Compare Type

(Optional)

Specifies the type of rasters that will be compared.

  • Raster datasetTwo raster datasets will be compared.

  • Geodatabase raster datasetTwo raster datasets in a geodatabase will be compared.

  • Mosaic datasetTwo mosaic datasets will be compared.

String

Ignore Options

(Optional)

Specifies the properties that will be ignored in the comparison.

  • Band countThe number of bands will be ignored.

  • ExtentThe extent will be ignored.

  • Columns and rowsThe number of columns and rows will be ignored.

  • Pixel typeThe pixel type will be ignored.

  • NoDataThe NoData value will be ignored.

  • Spatial referenceThe spatial reference system will be ignored.

  • Pixel valueThe pixel values will be ignored.

  • ColormapExisting color maps will be ignored.

  • Raster attribute tableExisting attribute tables will be ignored.

  • StatisticsStatistics will be ignored.

  • MetadataMetadata will be ignored.

  • Pyramids existExisting pyramids will be ignored.

  • Compression typeThe compression type will be ignored.

  • Data source typeThe data source type will be ignored.

String

Continue Comparison

(Optional)

Specifies whether the comparison will continue after encountering the first difference between the inputs.

  • CheckedThe tool will continue after encountering the first difference.

  • UncheckedThe tool will stop after encountering the first difference. This is the default.

Boolean

Output Compare File

(Optional)

The output file that will contain all similarities and differences between the inputs. This file is a comma-delimited text file that can be viewed and used as a table in ArcGIS.

The output file that will contain all similarities and differences between the inputs. This file is a comma-delimited text file that can be viewed and used as a table in ArcGIS.

File

Parameter Tolerance

(Optional)

The tolerances that determine the range in which values will be considered equal. The same tolerance can be applied to all parameters, or different tolerances can be applied to individual parameters.

The tolerance type can be either a value or a fraction.

If the tolerance type is a fraction, the tolerance for each pixel will be different since each pixel has a different value. For example, if a tolerance fraction is set to 0.5, the tolerance will be calculated as follows:

  • If a pixel has a value of 0.2, the tolerance will be 0.1, since 0.5 * 0.2 = 0.1.

  • If a pixel has a value of 3, the tolerance will be 1.5, since 0.5 * 3 = 1.5.

Value table columns:

  • ParameterThere are seven types of parameter tolerances you can adjust.

    • AllThe extents, pixel values, minimums, maximums, means, and standard deviations will be compared to determine if they are equal within the specified tolerance.

    • ExtentIf the difference of the extents is within the tolerance, they will be considered equal.

    • Pixel valuesIf the difference of the pixel values is within the tolerance, they will be considered equal.

    • MinimumIf the difference of the minimum values is within the tolerance, they will be considered equal.

    • MaximumIf the difference of the maximum values is within the tolerance, they will be considered equal.

    • MeanIf the difference of the mean values is within the tolerance, they will be considered equal.

    • Standard deviationIf the difference of the standard deviations is within the tolerance, they will be considered equal.

  • ToleranceSet the tolerance type to a specified value or use that value as a fraction.

  • TypeSet the type of tolerance value for the selected parameter.

    • FractionThe tolerance value will be a fraction of the value specified.

    • ValueThe tolerance value will be the value specified.

Value Table

Attribute Tolerance

(Optional)

The numeric value that will determine the range in which attribute values are considered equal. This parameter only applies to numeric field types.

Value table columns:

  • FieldThe numeric field that the tolerance will be applied to.

  • ToleranceThe numeric value that determines the range in which attribute values are considered equal. This only applies to numeric field types.

Value Table

Omit Fields

(Optional)

The field or fields that will be omitted during comparison. The field definitions and the tabular values for these fields will be ignored.

String

Out Compare Raster

(Optional)

The output raster comprising the differences between the Input Base Raster and Input Test Raster parameter values.

Raster Dataset

Derived output

Label Explanation Data type

Compare Status

The compare status will be 'true' when no differences are found and 'false' when differences are found.

Boolean

Environments

Current Workspace, Scratch Workspace

Licensing information

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