You are here:
Geoprocessing tool reference
>
Data Management toolbox
>
Raster toolset
>
Tools
Returns the properties of a raster dataset.
Usage tips
Command line syntax
An overview of the Command Line window
GetRasterProperties_management <in_raster> {MINIMUM | MAXIMUM | MEAN | STD | UNIQUEVALUECOUNT | TOP | LEFT | RIGHT | BOTTOM | CELLSIZEX | CELLSIZEY | VALUETYPE | COLUMNCOUNT | ROWCOUNT | BANDCOUNT}
<in_raster> |
The input raster dataset.
|
Composite Geodataset |
{MINIMUM | MAXIMUM | MEAN | STD | UNIQUEVALUECOUNT | TOP | LEFT | RIGHT | BOTTOM | CELLSIZEX | CELLSIZEY | VALUETYPE | COLUMNCOUNT | ROWCOUNT | BANDCOUNT} |
The property to be obtained from the raster dataset.
- MINIMUM —
Returns the smallest value of all cells in the input in_raster.
- MAXIMUM —
Returns the largest value of all cells in the input in_raster.
- MEAN —
Returns the average of all cells in the input in_raster.
- STD —
Returns the standard deviation of all cells in the input in_raster.
- UNIQUEVALUECOUNT —
Returns the number of unique values in the input in_raster.
- TOP —
Returns the top or YMax value of the extent.
- LEFT —
Returns the left or XMin value of the extent.
- RIGHT —
Returns the right or XMax value of the extent.
- BOTTOM —
Returns the bottom or YMin value of the extent.
- CELLSIZEX —
Returns the cell size in the x-direction.
- CELLSIZEY —
Returns the cell size in the y-direction.
- VALUETYPE —
Returns the type of the cell value in the input in_raster; 1 for an Integer or 2 for a Float.
- COLUMNCOUNT —
Returns the number of columns in the input in_raster.
- ROWCOUNT —
Returns the number of rows in the input in_raster.
- BANDCOUNT —
Returns the number of bands in the input in_raster.
|
String |
Data types for geoprocessing tool parameters
Command line example
GetRasterProperties C:\Data\elevation MAXIMUM
Scripting syntax
About getting started with writing geoprocessing scripts
GetRasterProperties_management (in_raster, property_type)
in_raster (Required) |
The input raster dataset.
|
Composite Geodataset |
property_type (Optional) |
The property to be obtained from the raster dataset.
- MINIMUM —
Returns the smallest value of all cells in the input in_raster.
- MAXIMUM —
Returns the largest value of all cells in the input in_raster.
- MEAN —
Returns the average of all cells in the input in_raster.
- STD —
Returns the standard deviation of all cells in the input in_raster.
- UNIQUEVALUECOUNT —
Returns the number of unique values in the input in_raster.
- TOP —
Returns the top or YMax value of the extent.
- LEFT —
Returns the left or XMin value of the extent.
- RIGHT —
Returns the right or XMax value of the extent.
- BOTTOM —
Returns the bottom or YMin value of the extent.
- CELLSIZEX —
Returns the cell size in the x-direction.
- CELLSIZEY —
Returns the cell size in the y-direction.
- VALUETYPE —
Returns the type of the cell value in the input in_raster; 1 for an Integer or 2 for a Float.
- COLUMNCOUNT —
Returns the number of columns in the input in_raster.
- ROWCOUNT —
Returns the number of rows in the input in_raster.
- BANDCOUNT —
Returns the number of bands in the input in_raster.
|
String |
Data types for geoprocessing tool parameters
Script example
# GetRasterProperties.py
# Description: Returns a property of a raster.
# Requirements: None
# Author: ESRI
# Date: 06/10/05
# Create the Geoprocessor object
import arcgisscripting, sys, string, os
gp = arcgisscripting.create()
try:
# Set local variables
InRaster = "D:/Data/elevation"
InPropertyType = "MAXIMUM"
# Process: GetRasterProperties
zmax = gp.GetRasterProperties (InRaster, InPropertyType)
except:
# Print error message if an error occurs
print gp.GetMessages()
Please visit the
Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.